set ival 555;
No escapes are implemented.
set junk 'string value';
Unless you are embedding a variable, it is recommended that single quoted string be used as they are more efficient.
Single-character escapes are recognized (bfnrtv"). A backslash before any other character will return that character. Octal, hex and unicode escapes are not recognized.
set junk "my stuff";
Double quoted strings may contain embedded variables.
set j "string value";
set k "c-compiler: ${CC}";
set l "home: $ENV{HOME}";
set a 1;
set b1 c;
set m "b${a}: ${b${a}}";
Path names may be left unquoted in many (but not all) cases. Path names with embedded spaces must be quoted.
check_size int64_t {
header stdint.h;
header /opt/local/include/stuff.h;
}
Variable values are enclosed with braces ${...}. Variables names may contain other variables.
set aaa 123;
set bbb ${aaa};
set a 1;
set b 2;
set c 3;
set d1 4;
set d2 5;
set d3 6;
set stuff ${d${b}};
set home $ENV{HOME};
set n [1 2 3 5];
set o ['a' 'b' 'c'];