SlideShare a Scribd company logo
File Formats compound_var(4)
NAME
compound_var - format of serialised compound variable
DESCRIPTION
An serialised compound variable file is text representing
the value of a compound variable. A compound variable has the form
name=(assignment ...) where "assignment" is a sequence of zero
or more shell variable assignments in the form
[<datatype><blank>]<name>=<value> (if <datatype><blank> is
omitted the default shell datatype "string" will be used)
seperated by newline or ';'.
* DataTypes:
<needs to be written.
* Material:
string
integer (and unsigned integer)
float (conformant to IEEE 754-2008)
hexfloat (conformant to C99 and IEEE 754-2008)
Array, indexed+associative
binary (mime base64)
compound variable
>
* Value encodings:
<needs to be written.
* Material:
1. plain strings
2. plain strings in double-quotes
3. ANSI-C strings $'...'
>
* Indexed arrays, sets, associative arrays:
<needs to be written>
SEE ALSO
ksh93(1), XML(4), libcompoundvar(3c)
NOTES
It is recommended that applications implement compund variable
output using the option "-C compound" or - if "-C" is already
used - use option "-# compound".
The format supports multibyte charatcers for both variable names
and values but the users but ensure that the creator and consumers
use a compatible character encoding.
The recommended file extension for serialised compound variables
is *.cpv
EXAMPLES
1. Empty compound variable:
-- snip --
(
)
-- snip --
2. Compound variable with a string member variable "foo"
-- snip --
(
foo="bar"
)
-- snip --
3. Compound variable with an indexed array with values "1", "2" and "3":
-- snip --
(
typeset -a a=(
1
2
3
)
)
-- snip --
4. Compound variable with an indexed array with string values "1",
"2" and "3":
-- snip --
(
typeset -a a=(
1
2
3
)
)
-- snip --
5. Compound variable with a sparse indexed array containing strings:
-- snip --
(
typeset -a a=(
[0]=1
[3]=3
[5]=2
)
)
-- snip --
6. Compound variable with a sparse indexed array containing
compound variables:
-- snip --
(
typeset -C -a a=(
[4]=(
msg="hello world"
food="roasted chicken"
)
[7]=(
msg="thank you for the fish"
food="tuna"
)
[9]=(
typeset -l -E temp=0.1
typeset -C nested_node=(
name="text node"
description="a text node"
value="hello fish"
)
)
)
)
-- snip --
7. Compound variable with an associative array containing
compound variables:
-- snip --
(
typeset -C -a a=(
['a meal node']=(
msg="hello world"
food="roasted chicken"
)
['another meal node']=(
msg="thank you for the fish"
food="tuna"
)
['temperature difference']=(
typeset -l -E temp=0.1
)
)
)
-- snip --
#### Material: ####
* Use sccsfile(4) as template
* String literals:
1. plain strings
2. Plain strings in double-quotes
3. ANSI-C strings $'...'
* Datatypes:
string
integer (and unsigned integer)
float (conformant to IEEE 754-2008)
hexfloat (conformant to C99 and IEEE 754-2008)
Array, indexed+associative
binary (mime base64)
compound variable
* ToDo:
-- snip --
<plocher> define the stability and specs for the following: Name,
Grammer/Syntax,
Producer(s) and Consumer(s), as well as a Description of what the file is used
for,
how its content can evolve (i.e., presume the parser stays same, but the grammer
grows, how can Consumers deal with change...)
-- snip --

More Related Content

What's hot

Python : Dictionaries
Python : DictionariesPython : Dictionaries
The Ring programming language version 1.5.1 book - Part 21 of 180
The Ring programming language version 1.5.1 book - Part 21 of 180The Ring programming language version 1.5.1 book - Part 21 of 180
The Ring programming language version 1.5.1 book - Part 21 of 180
Mahmoud Samir Fayed
 
MooseX::Datamodel - Barcelona Perl Workshop Lightning talk
MooseX::Datamodel - Barcelona Perl Workshop Lightning talkMooseX::Datamodel - Barcelona Perl Workshop Lightning talk
MooseX::Datamodel - Barcelona Perl Workshop Lightning talk
Jose Luis Martínez
 
Base r
Base rBase r
Python programming : List and tuples
Python programming : List and tuplesPython programming : List and tuples
Python programming : List and tuples
Emertxe Information Technologies Pvt Ltd
 
Python Lecture 11
Python Lecture 11Python Lecture 11
Python Lecture 11
Inzamam Baig
 
Replication and Replica Sets
Replication and Replica SetsReplication and Replica Sets
Replication and Replica Sets
MongoDB
 
Dictionary in python
Dictionary in pythonDictionary in python
Dictionary in python
vikram mahendra
 
Replication and Replica Sets
Replication and Replica SetsReplication and Replica Sets
Replication and Replica SetsMongoDB
 
Database API, your new friend
Database API, your new friendDatabase API, your new friend
Database API, your new friendkikoalonsob
 
PHP Data Objects
PHP Data ObjectsPHP Data Objects
PHP Data Objects
Wez Furlong
 
Python Lecture 10
Python Lecture 10Python Lecture 10
Python Lecture 10
Inzamam Baig
 
Unit vii wp ppt
Unit vii wp pptUnit vii wp ppt
Unit vii wp ppt
Bhavsingh Maloth
 
Datastructures in python
Datastructures in pythonDatastructures in python
Datastructures in python
hydpy
 
Array1
Array1Array1
Array1
Rajendran
 
Codigos
CodigosCodigos
Codigos
Brian Joseff
 
Python overview
Python   overviewPython   overview
Python overview
Hemant Kumar Tiwary
 
PHP Unit 4 arrays
PHP Unit 4 arraysPHP Unit 4 arrays
PHP Unit 4 arraysKumar
 
Linguagem sql
Linguagem sqlLinguagem sql
Linguagem sqlTic Eslc
 

What's hot (20)

Python : Dictionaries
Python : DictionariesPython : Dictionaries
Python : Dictionaries
 
The Ring programming language version 1.5.1 book - Part 21 of 180
The Ring programming language version 1.5.1 book - Part 21 of 180The Ring programming language version 1.5.1 book - Part 21 of 180
The Ring programming language version 1.5.1 book - Part 21 of 180
 
MooseX::Datamodel - Barcelona Perl Workshop Lightning talk
MooseX::Datamodel - Barcelona Perl Workshop Lightning talkMooseX::Datamodel - Barcelona Perl Workshop Lightning talk
MooseX::Datamodel - Barcelona Perl Workshop Lightning talk
 
Base r
Base rBase r
Base r
 
Python programming : List and tuples
Python programming : List and tuplesPython programming : List and tuples
Python programming : List and tuples
 
Python Lecture 11
Python Lecture 11Python Lecture 11
Python Lecture 11
 
Replication and Replica Sets
Replication and Replica SetsReplication and Replica Sets
Replication and Replica Sets
 
Dictionary in python
Dictionary in pythonDictionary in python
Dictionary in python
 
Replication and Replica Sets
Replication and Replica SetsReplication and Replica Sets
Replication and Replica Sets
 
Database API, your new friend
Database API, your new friendDatabase API, your new friend
Database API, your new friend
 
PHP Data Objects
PHP Data ObjectsPHP Data Objects
PHP Data Objects
 
Python Lecture 10
Python Lecture 10Python Lecture 10
Python Lecture 10
 
Unit vii wp ppt
Unit vii wp pptUnit vii wp ppt
Unit vii wp ppt
 
Datastructures in python
Datastructures in pythonDatastructures in python
Datastructures in python
 
Chapter 5a -_array_-in_class-
Chapter 5a -_array_-in_class-Chapter 5a -_array_-in_class-
Chapter 5a -_array_-in_class-
 
Array1
Array1Array1
Array1
 
Codigos
CodigosCodigos
Codigos
 
Python overview
Python   overviewPython   overview
Python overview
 
PHP Unit 4 arrays
PHP Unit 4 arraysPHP Unit 4 arrays
PHP Unit 4 arrays
 
Linguagem sql
Linguagem sqlLinguagem sql
Linguagem sql
 

Similar to Compound var

arrays-130116232821-phpapp02.pdf
arrays-130116232821-phpapp02.pdfarrays-130116232821-phpapp02.pdf
arrays-130116232821-phpapp02.pdf
MarlonMagtibay2
 
Chapter 2 wbp.pptx
Chapter 2 wbp.pptxChapter 2 wbp.pptx
Chapter 2 wbp.pptx
40NehaPagariya
 
学生向けScalaハンズオンテキスト
学生向けScalaハンズオンテキスト学生向けScalaハンズオンテキスト
学生向けScalaハンズオンテキスト
Opt Technologies
 
Data import-cheatsheet
Data import-cheatsheetData import-cheatsheet
Data import-cheatsheet
Dieudonne Nahigombeye
 
numpy.pdf
numpy.pdfnumpy.pdf
Chapter 3 Built-in Data Structures, Functions, and Files .pptx
Chapter 3 Built-in Data Structures, Functions, and Files .pptxChapter 3 Built-in Data Structures, Functions, and Files .pptx
Chapter 3 Built-in Data Structures, Functions, and Files .pptx
SovannDoeur
 
Interview C++11 code
Interview C++11 codeInterview C++11 code
Interview C++11 code
Russell Childs
 
Arrays
ArraysArrays
Scala - en bedre og mere effektiv Java?
Scala - en bedre og mere effektiv Java?Scala - en bedre og mere effektiv Java?
Scala - en bedre og mere effektiv Java?
Jesper Kamstrup Linnet
 
0php 5-online-cheat-sheet-v1-3
0php 5-online-cheat-sheet-v1-30php 5-online-cheat-sheet-v1-3
0php 5-online-cheat-sheet-v1-3Fafah Ranaivo
 
Explorando el Diseño de la Memoria en Rust
Explorando el Diseño de la Memoria en RustExplorando el Diseño de la Memoria en Rust
Explorando el Diseño de la Memoria en Rust
Germán Küber
 
Scala in Places API
Scala in Places APIScala in Places API
Scala in Places API
Łukasz Bałamut
 
Scala - en bedre Java?
Scala - en bedre Java?Scala - en bedre Java?
Scala - en bedre Java?
Jesper Kamstrup Linnet
 
Pooja
PoojaPooja
Marc’s (bio)perl course
Marc’s (bio)perl courseMarc’s (bio)perl course
Marc’s (bio)perl course
Marc Logghe
 
PHP 101
PHP 101 PHP 101
PHP 101
Muhammad Hijazi
 
Meet scala
Meet scalaMeet scala
Meet scala
Wojciech Pituła
 
PPT data science python sequence numpy.pptx
PPT data science python sequence numpy.pptxPPT data science python sequence numpy.pptx
PPT data science python sequence numpy.pptx
AkashAgrawal434750
 

Similar to Compound var (20)

arrays-130116232821-phpapp02.pdf
arrays-130116232821-phpapp02.pdfarrays-130116232821-phpapp02.pdf
arrays-130116232821-phpapp02.pdf
 
Chapter 2 wbp.pptx
Chapter 2 wbp.pptxChapter 2 wbp.pptx
Chapter 2 wbp.pptx
 
学生向けScalaハンズオンテキスト
学生向けScalaハンズオンテキスト学生向けScalaハンズオンテキスト
学生向けScalaハンズオンテキスト
 
Plc (1)
Plc (1)Plc (1)
Plc (1)
 
Data import-cheatsheet
Data import-cheatsheetData import-cheatsheet
Data import-cheatsheet
 
numpy.pdf
numpy.pdfnumpy.pdf
numpy.pdf
 
Chapter 3 Built-in Data Structures, Functions, and Files .pptx
Chapter 3 Built-in Data Structures, Functions, and Files .pptxChapter 3 Built-in Data Structures, Functions, and Files .pptx
Chapter 3 Built-in Data Structures, Functions, and Files .pptx
 
Interview C++11 code
Interview C++11 codeInterview C++11 code
Interview C++11 code
 
Arrays
ArraysArrays
Arrays
 
Scala - en bedre og mere effektiv Java?
Scala - en bedre og mere effektiv Java?Scala - en bedre og mere effektiv Java?
Scala - en bedre og mere effektiv Java?
 
0php 5-online-cheat-sheet-v1-3
0php 5-online-cheat-sheet-v1-30php 5-online-cheat-sheet-v1-3
0php 5-online-cheat-sheet-v1-3
 
Explorando el Diseño de la Memoria en Rust
Explorando el Diseño de la Memoria en RustExplorando el Diseño de la Memoria en Rust
Explorando el Diseño de la Memoria en Rust
 
Scala in Places API
Scala in Places APIScala in Places API
Scala in Places API
 
Scala - en bedre Java?
Scala - en bedre Java?Scala - en bedre Java?
Scala - en bedre Java?
 
Pooja
PoojaPooja
Pooja
 
Pooja
PoojaPooja
Pooja
 
Marc’s (bio)perl course
Marc’s (bio)perl courseMarc’s (bio)perl course
Marc’s (bio)perl course
 
PHP 101
PHP 101 PHP 101
PHP 101
 
Meet scala
Meet scalaMeet scala
Meet scala
 
PPT data science python sequence numpy.pptx
PPT data science python sequence numpy.pptxPPT data science python sequence numpy.pptx
PPT data science python sequence numpy.pptx
 

More from Ben Pope

Applecmdlista zs
Applecmdlista zsApplecmdlista zs
Applecmdlista zs
Ben Pope
 
An a z index of the bash commands
An a z index of the bash commandsAn a z index of the bash commands
An a z index of the bash commands
Ben Pope
 
An a z index of windows power shell commandss
An a z index of windows power shell commandssAn a z index of windows power shell commandss
An a z index of windows power shell commandss
Ben Pope
 
Xz file-format-1.0.4
Xz file-format-1.0.4Xz file-format-1.0.4
Xz file-format-1.0.4
Ben Pope
 
Programming collaborative-ref
Programming collaborative-refProgramming collaborative-ref
Programming collaborative-ref
Ben Pope
 
Popstat1 sh
Popstat1 shPopstat1 sh
Popstat1 sh
Ben Pope
 
Pop3stat sh
Pop3stat shPop3stat sh
Pop3stat sh
Ben Pope
 
Pop3ck sh
Pop3ck shPop3ck sh
Pop3ck sh
Ben Pope
 
Phadd sh
Phadd shPhadd sh
Phadd sh
Ben Pope
 
Phdel sh
Phdel shPhdel sh
Phdel sh
Ben Pope
 
Mkscript sh
Mkscript shMkscript sh
Mkscript sh
Ben Pope
 
Menu func-sh
Menu func-shMenu func-sh
Menu func-sh
Ben Pope
 
Menu func-sh(1)
Menu func-sh(1)Menu func-sh(1)
Menu func-sh(1)
Ben Pope
 
Luhn sh
Luhn shLuhn sh
Luhn sh
Ben Pope
 
Logrotate sh
Logrotate shLogrotate sh
Logrotate sh
Ben Pope
 
Getfilestruct zbksh
Getfilestruct zbkshGetfilestruct zbksh
Getfilestruct zbksh
Ben Pope
 
Getfilestruct zbksh(1)
Getfilestruct zbksh(1)Getfilestruct zbksh(1)
Getfilestruct zbksh(1)
Ben Pope
 
Cpsh sh
Cpsh shCpsh sh
Cpsh sh
Ben Pope
 
Bouncingballs sh
Bouncingballs shBouncingballs sh
Bouncingballs sh
Ben Pope
 

More from Ben Pope (19)

Applecmdlista zs
Applecmdlista zsApplecmdlista zs
Applecmdlista zs
 
An a z index of the bash commands
An a z index of the bash commandsAn a z index of the bash commands
An a z index of the bash commands
 
An a z index of windows power shell commandss
An a z index of windows power shell commandssAn a z index of windows power shell commandss
An a z index of windows power shell commandss
 
Xz file-format-1.0.4
Xz file-format-1.0.4Xz file-format-1.0.4
Xz file-format-1.0.4
 
Programming collaborative-ref
Programming collaborative-refProgramming collaborative-ref
Programming collaborative-ref
 
Popstat1 sh
Popstat1 shPopstat1 sh
Popstat1 sh
 
Pop3stat sh
Pop3stat shPop3stat sh
Pop3stat sh
 
Pop3ck sh
Pop3ck shPop3ck sh
Pop3ck sh
 
Phadd sh
Phadd shPhadd sh
Phadd sh
 
Phdel sh
Phdel shPhdel sh
Phdel sh
 
Mkscript sh
Mkscript shMkscript sh
Mkscript sh
 
Menu func-sh
Menu func-shMenu func-sh
Menu func-sh
 
Menu func-sh(1)
Menu func-sh(1)Menu func-sh(1)
Menu func-sh(1)
 
Luhn sh
Luhn shLuhn sh
Luhn sh
 
Logrotate sh
Logrotate shLogrotate sh
Logrotate sh
 
Getfilestruct zbksh
Getfilestruct zbkshGetfilestruct zbksh
Getfilestruct zbksh
 
Getfilestruct zbksh(1)
Getfilestruct zbksh(1)Getfilestruct zbksh(1)
Getfilestruct zbksh(1)
 
Cpsh sh
Cpsh shCpsh sh
Cpsh sh
 
Bouncingballs sh
Bouncingballs shBouncingballs sh
Bouncingballs sh
 

Recently uploaded

Brushstrokes of Inspiration: Four Major Influences in Victor Gilbert’s Artist...
Brushstrokes of Inspiration: Four Major Influences in Victor Gilbert’s Artist...Brushstrokes of Inspiration: Four Major Influences in Victor Gilbert’s Artist...
Brushstrokes of Inspiration: Four Major Influences in Victor Gilbert’s Artist...
KendraJohnson54
 
Rishikesh @ℂall @Girls ꧁❤Book❤꧂@ℂall @Girls Service Vip Top Model Safe
Rishikesh  @ℂall @Girls ꧁❤Book❤꧂@ℂall @Girls Service Vip Top Model SafeRishikesh  @ℂall @Girls ꧁❤Book❤꧂@ℂall @Girls Service Vip Top Model Safe
Rishikesh @ℂall @Girls ꧁❤Book❤꧂@ℂall @Girls Service Vip Top Model Safe
hilij84961
 
In Focus_ The Evolution of Boudoir Photography in NYC.pdf
In Focus_ The Evolution of Boudoir Photography in NYC.pdfIn Focus_ The Evolution of Boudoir Photography in NYC.pdf
In Focus_ The Evolution of Boudoir Photography in NYC.pdf
Boudoir Photography by Your Hollywood Portrait
 
Complete Lab 123456789123456789123456789
Complete Lab 123456789123456789123456789Complete Lab 123456789123456789123456789
Complete Lab 123456789123456789123456789
vickyvikas51556
 
一比一原版(UniSA毕业证)南澳大学毕业证成绩单如何办理
一比一原版(UniSA毕业证)南澳大学毕业证成绩单如何办理一比一原版(UniSA毕业证)南澳大学毕业证成绩单如何办理
一比一原版(UniSA毕业证)南澳大学毕业证成绩单如何办理
zeyhe
 
Dino Ranch Storyboard / Kids TV Advertising
Dino Ranch Storyboard / Kids TV AdvertisingDino Ranch Storyboard / Kids TV Advertising
Dino Ranch Storyboard / Kids TV Advertising
Alessandro Occhipinti
 
Award template for beginner students of DVBS
Award template for beginner students of DVBSAward template for beginner students of DVBS
Award template for beginner students of DVBS
RodilynColampit
 
➒➌➎➏➑➐➋➑➐➐ Dpboss Satta Matka Matka Guessing Kalyan Chart Indian Matka Satta ...
➒➌➎➏➑➐➋➑➐➐ Dpboss Satta Matka Matka Guessing Kalyan Chart Indian Matka Satta ...➒➌➎➏➑➐➋➑➐➐ Dpboss Satta Matka Matka Guessing Kalyan Chart Indian Matka Satta ...
➒➌➎➏➑➐➋➑➐➐ Dpboss Satta Matka Matka Guessing Kalyan Chart Indian Matka Satta ...
➒➌➎➏➑➐➋➑➐➐Dpboss Matka Guessing Satta Matka Kalyan Chart Indian Matka
 
All the images mentioned in 'See What You're Missing'
All the images mentioned in 'See What You're Missing'All the images mentioned in 'See What You're Missing'
All the images mentioned in 'See What You're Missing'
Dave Boyle
 
Fed by curiosity and beauty - Remembering Myrsine Zorba
Fed by curiosity and beauty - Remembering Myrsine ZorbaFed by curiosity and beauty - Remembering Myrsine Zorba
Fed by curiosity and beauty - Remembering Myrsine Zorba
mariavlachoupt
 
2024 MATFORCE Youth Poster Contest Winners
2024 MATFORCE Youth Poster Contest Winners2024 MATFORCE Youth Poster Contest Winners
2024 MATFORCE Youth Poster Contest Winners
matforce
 
一比一原版(QUT毕业证)昆士兰科技大学毕业证成绩单如何办理
一比一原版(QUT毕业证)昆士兰科技大学毕业证成绩单如何办理一比一原版(QUT毕业证)昆士兰科技大学毕业证成绩单如何办理
一比一原版(QUT毕业证)昆士兰科技大学毕业证成绩单如何办理
zeyhe
 
This is a certificate template for Daily Vacation Bible School Awards Can edi...
This is a certificate template for Daily Vacation Bible School Awards Can edi...This is a certificate template for Daily Vacation Bible School Awards Can edi...
This is a certificate template for Daily Vacation Bible School Awards Can edi...
RodilynColampit
 
Fashionista Chic Couture Mazes and Coloring AdventureA
Fashionista Chic Couture Mazes and Coloring AdventureAFashionista Chic Couture Mazes and Coloring AdventureA
Fashionista Chic Couture Mazes and Coloring AdventureA
julierjefferies8888
 
Cream and Brown Illustrative Food Journal Presentation.pptx
Cream and Brown Illustrative Food Journal Presentation.pptxCream and Brown Illustrative Food Journal Presentation.pptx
Cream and Brown Illustrative Food Journal Presentation.pptx
cndywjya001
 
Codes n Conventionss copy (2).pptx new new
Codes n Conventionss copy (2).pptx new newCodes n Conventionss copy (2).pptx new new
Codes n Conventionss copy (2).pptx new new
ZackSpencer3
 
一比一原版(qut毕业证)昆士兰科技大学毕业证如何办理
一比一原版(qut毕业证)昆士兰科技大学毕业证如何办理一比一原版(qut毕业证)昆士兰科技大学毕业证如何办理
一比一原版(qut毕业证)昆士兰科技大学毕业证如何办理
taqyed
 
A Brief Introduction About Hadj Ounis
A Brief  Introduction  About  Hadj OunisA Brief  Introduction  About  Hadj Ounis
A Brief Introduction About Hadj Ounis
Hadj Ounis
 
FinalFinalSelf-PortraiturePowerPoint.pptx
FinalFinalSelf-PortraiturePowerPoint.pptxFinalFinalSelf-PortraiturePowerPoint.pptx
FinalFinalSelf-PortraiturePowerPoint.pptx
abbieharman
 
Animated Avengers Powerpoint Template_16x9.pptx
Animated Avengers Powerpoint Template_16x9.pptxAnimated Avengers Powerpoint Template_16x9.pptx
Animated Avengers Powerpoint Template_16x9.pptx
StevanTanaga
 

Recently uploaded (20)

Brushstrokes of Inspiration: Four Major Influences in Victor Gilbert’s Artist...
Brushstrokes of Inspiration: Four Major Influences in Victor Gilbert’s Artist...Brushstrokes of Inspiration: Four Major Influences in Victor Gilbert’s Artist...
Brushstrokes of Inspiration: Four Major Influences in Victor Gilbert’s Artist...
 
Rishikesh @ℂall @Girls ꧁❤Book❤꧂@ℂall @Girls Service Vip Top Model Safe
Rishikesh  @ℂall @Girls ꧁❤Book❤꧂@ℂall @Girls Service Vip Top Model SafeRishikesh  @ℂall @Girls ꧁❤Book❤꧂@ℂall @Girls Service Vip Top Model Safe
Rishikesh @ℂall @Girls ꧁❤Book❤꧂@ℂall @Girls Service Vip Top Model Safe
 
In Focus_ The Evolution of Boudoir Photography in NYC.pdf
In Focus_ The Evolution of Boudoir Photography in NYC.pdfIn Focus_ The Evolution of Boudoir Photography in NYC.pdf
In Focus_ The Evolution of Boudoir Photography in NYC.pdf
 
Complete Lab 123456789123456789123456789
Complete Lab 123456789123456789123456789Complete Lab 123456789123456789123456789
Complete Lab 123456789123456789123456789
 
一比一原版(UniSA毕业证)南澳大学毕业证成绩单如何办理
一比一原版(UniSA毕业证)南澳大学毕业证成绩单如何办理一比一原版(UniSA毕业证)南澳大学毕业证成绩单如何办理
一比一原版(UniSA毕业证)南澳大学毕业证成绩单如何办理
 
Dino Ranch Storyboard / Kids TV Advertising
Dino Ranch Storyboard / Kids TV AdvertisingDino Ranch Storyboard / Kids TV Advertising
Dino Ranch Storyboard / Kids TV Advertising
 
Award template for beginner students of DVBS
Award template for beginner students of DVBSAward template for beginner students of DVBS
Award template for beginner students of DVBS
 
➒➌➎➏➑➐➋➑➐➐ Dpboss Satta Matka Matka Guessing Kalyan Chart Indian Matka Satta ...
➒➌➎➏➑➐➋➑➐➐ Dpboss Satta Matka Matka Guessing Kalyan Chart Indian Matka Satta ...➒➌➎➏➑➐➋➑➐➐ Dpboss Satta Matka Matka Guessing Kalyan Chart Indian Matka Satta ...
➒➌➎➏➑➐➋➑➐➐ Dpboss Satta Matka Matka Guessing Kalyan Chart Indian Matka Satta ...
 
All the images mentioned in 'See What You're Missing'
All the images mentioned in 'See What You're Missing'All the images mentioned in 'See What You're Missing'
All the images mentioned in 'See What You're Missing'
 
Fed by curiosity and beauty - Remembering Myrsine Zorba
Fed by curiosity and beauty - Remembering Myrsine ZorbaFed by curiosity and beauty - Remembering Myrsine Zorba
Fed by curiosity and beauty - Remembering Myrsine Zorba
 
2024 MATFORCE Youth Poster Contest Winners
2024 MATFORCE Youth Poster Contest Winners2024 MATFORCE Youth Poster Contest Winners
2024 MATFORCE Youth Poster Contest Winners
 
一比一原版(QUT毕业证)昆士兰科技大学毕业证成绩单如何办理
一比一原版(QUT毕业证)昆士兰科技大学毕业证成绩单如何办理一比一原版(QUT毕业证)昆士兰科技大学毕业证成绩单如何办理
一比一原版(QUT毕业证)昆士兰科技大学毕业证成绩单如何办理
 
This is a certificate template for Daily Vacation Bible School Awards Can edi...
This is a certificate template for Daily Vacation Bible School Awards Can edi...This is a certificate template for Daily Vacation Bible School Awards Can edi...
This is a certificate template for Daily Vacation Bible School Awards Can edi...
 
Fashionista Chic Couture Mazes and Coloring AdventureA
Fashionista Chic Couture Mazes and Coloring AdventureAFashionista Chic Couture Mazes and Coloring AdventureA
Fashionista Chic Couture Mazes and Coloring AdventureA
 
Cream and Brown Illustrative Food Journal Presentation.pptx
Cream and Brown Illustrative Food Journal Presentation.pptxCream and Brown Illustrative Food Journal Presentation.pptx
Cream and Brown Illustrative Food Journal Presentation.pptx
 
Codes n Conventionss copy (2).pptx new new
Codes n Conventionss copy (2).pptx new newCodes n Conventionss copy (2).pptx new new
Codes n Conventionss copy (2).pptx new new
 
一比一原版(qut毕业证)昆士兰科技大学毕业证如何办理
一比一原版(qut毕业证)昆士兰科技大学毕业证如何办理一比一原版(qut毕业证)昆士兰科技大学毕业证如何办理
一比一原版(qut毕业证)昆士兰科技大学毕业证如何办理
 
A Brief Introduction About Hadj Ounis
A Brief  Introduction  About  Hadj OunisA Brief  Introduction  About  Hadj Ounis
A Brief Introduction About Hadj Ounis
 
FinalFinalSelf-PortraiturePowerPoint.pptx
FinalFinalSelf-PortraiturePowerPoint.pptxFinalFinalSelf-PortraiturePowerPoint.pptx
FinalFinalSelf-PortraiturePowerPoint.pptx
 
Animated Avengers Powerpoint Template_16x9.pptx
Animated Avengers Powerpoint Template_16x9.pptxAnimated Avengers Powerpoint Template_16x9.pptx
Animated Avengers Powerpoint Template_16x9.pptx
 

Compound var

  • 1. File Formats compound_var(4) NAME compound_var - format of serialised compound variable DESCRIPTION An serialised compound variable file is text representing the value of a compound variable. A compound variable has the form name=(assignment ...) where "assignment" is a sequence of zero or more shell variable assignments in the form [<datatype><blank>]<name>=<value> (if <datatype><blank> is omitted the default shell datatype "string" will be used) seperated by newline or ';'. * DataTypes: <needs to be written. * Material: string integer (and unsigned integer) float (conformant to IEEE 754-2008) hexfloat (conformant to C99 and IEEE 754-2008) Array, indexed+associative binary (mime base64) compound variable > * Value encodings: <needs to be written. * Material: 1. plain strings 2. plain strings in double-quotes 3. ANSI-C strings $'...' > * Indexed arrays, sets, associative arrays: <needs to be written> SEE ALSO ksh93(1), XML(4), libcompoundvar(3c) NOTES It is recommended that applications implement compund variable output using the option "-C compound" or - if "-C" is already used - use option "-# compound". The format supports multibyte charatcers for both variable names and values but the users but ensure that the creator and consumers use a compatible character encoding. The recommended file extension for serialised compound variables is *.cpv EXAMPLES 1. Empty compound variable: -- snip -- ( ) -- snip --
  • 2. 2. Compound variable with a string member variable "foo" -- snip -- ( foo="bar" ) -- snip -- 3. Compound variable with an indexed array with values "1", "2" and "3": -- snip -- ( typeset -a a=( 1 2 3 ) ) -- snip -- 4. Compound variable with an indexed array with string values "1", "2" and "3": -- snip -- ( typeset -a a=( 1 2 3 ) ) -- snip -- 5. Compound variable with a sparse indexed array containing strings: -- snip -- ( typeset -a a=( [0]=1 [3]=3 [5]=2 ) ) -- snip -- 6. Compound variable with a sparse indexed array containing compound variables: -- snip -- ( typeset -C -a a=( [4]=( msg="hello world" food="roasted chicken" ) [7]=( msg="thank you for the fish" food="tuna" ) [9]=( typeset -l -E temp=0.1 typeset -C nested_node=( name="text node" description="a text node" value="hello fish" ) ) )
  • 3. ) -- snip -- 7. Compound variable with an associative array containing compound variables: -- snip -- ( typeset -C -a a=( ['a meal node']=( msg="hello world" food="roasted chicken" ) ['another meal node']=( msg="thank you for the fish" food="tuna" ) ['temperature difference']=( typeset -l -E temp=0.1 ) ) ) -- snip -- #### Material: #### * Use sccsfile(4) as template * String literals: 1. plain strings 2. Plain strings in double-quotes 3. ANSI-C strings $'...' * Datatypes: string integer (and unsigned integer) float (conformant to IEEE 754-2008) hexfloat (conformant to C99 and IEEE 754-2008) Array, indexed+associative binary (mime base64) compound variable * ToDo: -- snip -- <plocher> define the stability and specs for the following: Name, Grammer/Syntax, Producer(s) and Consumer(s), as well as a Description of what the file is used for, how its content can evolve (i.e., presume the parser stays same, but the grammer grows, how can Consumers deal with change...) -- snip --