Discussion:
[ast-developers] Initializing type array with values does not work
ольга крыжановская
2013-08-16 10:28:30 UTC
Permalink
I am trying to initialize an associative array of types as follows:

typeset -T p_t=(
integer fd
compound events=( bool pollin=false )
)
compound c
p_t -A c.p=( [2]=( fd=0 ; events=( bool pollin=true ; bool pollout=false ) ) )
print "${c.p[2].events.pollin}"

The example should print 'true', but instead prints 'false' for
ast-ksh.2013-08-14.

Olga
--
, _ _ ,
{ \/`o;====- Olga Kryzhanovska -====;o`\/ }
.----'-/`-/ olga.kryzhanovska at gmail.com \-`\-'----.
`'-..-| / http://twitter.com/fleyta \ |-..-'`
/\/\ Solaris/BSD//C/C++ programmer /\/\
`--` `--`
Loading...