SlideShare a Scribd company logo
1 of 3
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 (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

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
 
Spark_Documentation_Template1
Spark_Documentation_Template1Spark_Documentation_Template1
Spark_Documentation_Template1
 

More from Ben Pope

Applecmdlista zs
Applecmdlista zsApplecmdlista zs
Applecmdlista zsBen 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 commandsBen 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 commandssBen Pope
 
Xz file-format-1.0.4
Xz file-format-1.0.4Xz file-format-1.0.4
Xz file-format-1.0.4Ben Pope
 
Programming collaborative-ref
Programming collaborative-refProgramming collaborative-ref
Programming collaborative-refBen Pope
 
Popstat1 sh
Popstat1 shPopstat1 sh
Popstat1 shBen Pope
 
Pop3stat sh
Pop3stat shPop3stat sh
Pop3stat shBen Pope
 
Mkscript sh
Mkscript shMkscript sh
Mkscript shBen Pope
 
Menu func-sh
Menu func-shMenu func-sh
Menu func-shBen Pope
 
Menu func-sh(1)
Menu func-sh(1)Menu func-sh(1)
Menu func-sh(1)Ben Pope
 
Logrotate sh
Logrotate shLogrotate sh
Logrotate shBen Pope
 
Getfilestruct zbksh
Getfilestruct zbkshGetfilestruct zbksh
Getfilestruct zbkshBen Pope
 
Getfilestruct zbksh(1)
Getfilestruct zbksh(1)Getfilestruct zbksh(1)
Getfilestruct zbksh(1)Ben Pope
 
Bouncingballs sh
Bouncingballs shBouncingballs sh
Bouncingballs shBen 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

Laxmi Nagar Call Girls : ☎ 8527673949, Low rate Call Girls
Laxmi Nagar Call Girls : ☎ 8527673949, Low rate Call GirlsLaxmi Nagar Call Girls : ☎ 8527673949, Low rate Call Girls
Laxmi Nagar Call Girls : ☎ 8527673949, Low rate Call Girlsashishs7044
 
Akola Call Girls #9907093804 Contact Number Escorts Service Akola
Akola Call Girls #9907093804 Contact Number Escorts Service AkolaAkola Call Girls #9907093804 Contact Number Escorts Service Akola
Akola Call Girls #9907093804 Contact Number Escorts Service Akolasrsj9000
 
MinSheng Gaofeng Estate commercial storyboard
MinSheng Gaofeng Estate commercial storyboardMinSheng Gaofeng Estate commercial storyboard
MinSheng Gaofeng Estate commercial storyboardjessica288382
 
Call Girl in Bur Dubai O5286O4116 Indian Call Girls in Bur Dubai By VIP Bur D...
Call Girl in Bur Dubai O5286O4116 Indian Call Girls in Bur Dubai By VIP Bur D...Call Girl in Bur Dubai O5286O4116 Indian Call Girls in Bur Dubai By VIP Bur D...
Call Girl in Bur Dubai O5286O4116 Indian Call Girls in Bur Dubai By VIP Bur D...dajasot375
 
Turn Lock Take Key Storyboard Daniel Johnson
Turn Lock Take Key Storyboard Daniel JohnsonTurn Lock Take Key Storyboard Daniel Johnson
Turn Lock Take Key Storyboard Daniel Johnsonthephillipta
 
Bridge Fight Board by Daniel Johnson dtjohnsonart.com
Bridge Fight Board by Daniel Johnson dtjohnsonart.comBridge Fight Board by Daniel Johnson dtjohnsonart.com
Bridge Fight Board by Daniel Johnson dtjohnsonart.comthephillipta
 
Olivia Cox. intertextual references.pptx
Olivia Cox. intertextual references.pptxOlivia Cox. intertextual references.pptx
Olivia Cox. intertextual references.pptxLauraFagan6
 
Zagor VČ OP 055 - Oluja nad Haitijem.pdf
Zagor VČ OP 055 - Oluja nad Haitijem.pdfZagor VČ OP 055 - Oluja nad Haitijem.pdf
Zagor VČ OP 055 - Oluja nad Haitijem.pdfStripovizijacom
 
FULL ENJOY - 9953040155 Call Girls in Moti Nagar | Delhi
FULL ENJOY - 9953040155 Call Girls in Moti Nagar | DelhiFULL ENJOY - 9953040155 Call Girls in Moti Nagar | Delhi
FULL ENJOY - 9953040155 Call Girls in Moti Nagar | DelhiMalviyaNagarCallGirl
 
Alex and Chloe by Daniel Johnson Storyboard
Alex and Chloe by Daniel Johnson StoryboardAlex and Chloe by Daniel Johnson Storyboard
Alex and Chloe by Daniel Johnson Storyboardthephillipta
 
FULL ENJOY - 9953040155 Call Girls in Paschim Vihar | Delhi
FULL ENJOY - 9953040155 Call Girls in Paschim Vihar | DelhiFULL ENJOY - 9953040155 Call Girls in Paschim Vihar | Delhi
FULL ENJOY - 9953040155 Call Girls in Paschim Vihar | DelhiMalviyaNagarCallGirl
 
FULL ENJOY - 9953040155 Call Girls in Noida | Delhi
FULL ENJOY - 9953040155 Call Girls in Noida | DelhiFULL ENJOY - 9953040155 Call Girls in Noida | Delhi
FULL ENJOY - 9953040155 Call Girls in Noida | DelhiMalviyaNagarCallGirl
 
Strip Zagor Extra 322 - Dva ortaka.pdf
Strip   Zagor Extra 322 - Dva ortaka.pdfStrip   Zagor Extra 322 - Dva ortaka.pdf
Strip Zagor Extra 322 - Dva ortaka.pdfStripovizijacom
 
Greater Noida Call Girls : ☎ 8527673949, Low rate Call Girls
Greater Noida Call Girls : ☎ 8527673949, Low rate Call GirlsGreater Noida Call Girls : ☎ 8527673949, Low rate Call Girls
Greater Noida Call Girls : ☎ 8527673949, Low rate Call Girlsashishs7044
 
Govindpuri Call Girls : ☎ 8527673949, Low rate Call Girls
Govindpuri Call Girls : ☎ 8527673949, Low rate Call GirlsGovindpuri Call Girls : ☎ 8527673949, Low rate Call Girls
Govindpuri Call Girls : ☎ 8527673949, Low rate Call Girlsashishs7044
 
The First Date by Daniel Johnson (Inspired By True Events)
The First Date by Daniel Johnson (Inspired By True Events)The First Date by Daniel Johnson (Inspired By True Events)
The First Date by Daniel Johnson (Inspired By True Events)thephillipta
 
Islamabad Call Girls # 03091665556 # Call Girls in Islamabad | Islamabad Escorts
Islamabad Call Girls # 03091665556 # Call Girls in Islamabad | Islamabad EscortsIslamabad Call Girls # 03091665556 # Call Girls in Islamabad | Islamabad Escorts
Islamabad Call Girls # 03091665556 # Call Girls in Islamabad | Islamabad Escortswdefrd
 
Burari Call Girls : ☎ 8527673949, Low rate Call Girls
Burari Call Girls : ☎ 8527673949, Low rate Call GirlsBurari Call Girls : ☎ 8527673949, Low rate Call Girls
Burari Call Girls : ☎ 8527673949, Low rate Call Girlsashishs7044
 

Recently uploaded (20)

Laxmi Nagar Call Girls : ☎ 8527673949, Low rate Call Girls
Laxmi Nagar Call Girls : ☎ 8527673949, Low rate Call GirlsLaxmi Nagar Call Girls : ☎ 8527673949, Low rate Call Girls
Laxmi Nagar Call Girls : ☎ 8527673949, Low rate Call Girls
 
Akola Call Girls #9907093804 Contact Number Escorts Service Akola
Akola Call Girls #9907093804 Contact Number Escorts Service AkolaAkola Call Girls #9907093804 Contact Number Escorts Service Akola
Akola Call Girls #9907093804 Contact Number Escorts Service Akola
 
MinSheng Gaofeng Estate commercial storyboard
MinSheng Gaofeng Estate commercial storyboardMinSheng Gaofeng Estate commercial storyboard
MinSheng Gaofeng Estate commercial storyboard
 
Call Girl in Bur Dubai O5286O4116 Indian Call Girls in Bur Dubai By VIP Bur D...
Call Girl in Bur Dubai O5286O4116 Indian Call Girls in Bur Dubai By VIP Bur D...Call Girl in Bur Dubai O5286O4116 Indian Call Girls in Bur Dubai By VIP Bur D...
Call Girl in Bur Dubai O5286O4116 Indian Call Girls in Bur Dubai By VIP Bur D...
 
Turn Lock Take Key Storyboard Daniel Johnson
Turn Lock Take Key Storyboard Daniel JohnsonTurn Lock Take Key Storyboard Daniel Johnson
Turn Lock Take Key Storyboard Daniel Johnson
 
Bur Dubai Call Girls # 971504361175 # Call Girls In Bur Dubai || (UAE)
Bur Dubai Call Girls # 971504361175 # Call Girls In Bur Dubai || (UAE)Bur Dubai Call Girls # 971504361175 # Call Girls In Bur Dubai || (UAE)
Bur Dubai Call Girls # 971504361175 # Call Girls In Bur Dubai || (UAE)
 
Bridge Fight Board by Daniel Johnson dtjohnsonart.com
Bridge Fight Board by Daniel Johnson dtjohnsonart.comBridge Fight Board by Daniel Johnson dtjohnsonart.com
Bridge Fight Board by Daniel Johnson dtjohnsonart.com
 
Olivia Cox. intertextual references.pptx
Olivia Cox. intertextual references.pptxOlivia Cox. intertextual references.pptx
Olivia Cox. intertextual references.pptx
 
Zagor VČ OP 055 - Oluja nad Haitijem.pdf
Zagor VČ OP 055 - Oluja nad Haitijem.pdfZagor VČ OP 055 - Oluja nad Haitijem.pdf
Zagor VČ OP 055 - Oluja nad Haitijem.pdf
 
FULL ENJOY - 9953040155 Call Girls in Moti Nagar | Delhi
FULL ENJOY - 9953040155 Call Girls in Moti Nagar | DelhiFULL ENJOY - 9953040155 Call Girls in Moti Nagar | Delhi
FULL ENJOY - 9953040155 Call Girls in Moti Nagar | Delhi
 
Alex and Chloe by Daniel Johnson Storyboard
Alex and Chloe by Daniel Johnson StoryboardAlex and Chloe by Daniel Johnson Storyboard
Alex and Chloe by Daniel Johnson Storyboard
 
FULL ENJOY - 9953040155 Call Girls in Paschim Vihar | Delhi
FULL ENJOY - 9953040155 Call Girls in Paschim Vihar | DelhiFULL ENJOY - 9953040155 Call Girls in Paschim Vihar | Delhi
FULL ENJOY - 9953040155 Call Girls in Paschim Vihar | Delhi
 
FULL ENJOY - 9953040155 Call Girls in Noida | Delhi
FULL ENJOY - 9953040155 Call Girls in Noida | DelhiFULL ENJOY - 9953040155 Call Girls in Noida | Delhi
FULL ENJOY - 9953040155 Call Girls in Noida | Delhi
 
Strip Zagor Extra 322 - Dva ortaka.pdf
Strip   Zagor Extra 322 - Dva ortaka.pdfStrip   Zagor Extra 322 - Dva ortaka.pdf
Strip Zagor Extra 322 - Dva ortaka.pdf
 
Greater Noida Call Girls : ☎ 8527673949, Low rate Call Girls
Greater Noida Call Girls : ☎ 8527673949, Low rate Call GirlsGreater Noida Call Girls : ☎ 8527673949, Low rate Call Girls
Greater Noida Call Girls : ☎ 8527673949, Low rate Call Girls
 
Dxb Call Girls # +971529501107 # Call Girls In Dxb Dubai || (UAE)
Dxb Call Girls # +971529501107 # Call Girls In Dxb Dubai || (UAE)Dxb Call Girls # +971529501107 # Call Girls In Dxb Dubai || (UAE)
Dxb Call Girls # +971529501107 # Call Girls In Dxb Dubai || (UAE)
 
Govindpuri Call Girls : ☎ 8527673949, Low rate Call Girls
Govindpuri Call Girls : ☎ 8527673949, Low rate Call GirlsGovindpuri Call Girls : ☎ 8527673949, Low rate Call Girls
Govindpuri Call Girls : ☎ 8527673949, Low rate Call Girls
 
The First Date by Daniel Johnson (Inspired By True Events)
The First Date by Daniel Johnson (Inspired By True Events)The First Date by Daniel Johnson (Inspired By True Events)
The First Date by Daniel Johnson (Inspired By True Events)
 
Islamabad Call Girls # 03091665556 # Call Girls in Islamabad | Islamabad Escorts
Islamabad Call Girls # 03091665556 # Call Girls in Islamabad | Islamabad EscortsIslamabad Call Girls # 03091665556 # Call Girls in Islamabad | Islamabad Escorts
Islamabad Call Girls # 03091665556 # Call Girls in Islamabad | Islamabad Escorts
 
Burari Call Girls : ☎ 8527673949, Low rate Call Girls
Burari Call Girls : ☎ 8527673949, Low rate Call GirlsBurari Call Girls : ☎ 8527673949, Low rate Call Girls
Burari Call Girls : ☎ 8527673949, Low rate Call Girls
 

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 --