ольга крыжановская
2013-07-15 06:18:18 UTC
A bool array in compound array in name space accessed through nameref
does not work in ast-ksh.2013-06-28.
Test case:
./arch/linux.i386-64/bin/ksh -c 'namespace sp1 { compound -a c=(
[4][16]=( bool -a b=( [4][3]=true [4][5]=false ) ) ) } ; nameref
n=.sp1.c[4][16] ; printf "1=%q\n" "${n.b[4][@]}"'
1=
It should print $'1=true\n1=false'.
It looks to me that the combination of nameref and namespace do not
play well with each other.
Olga
does not work in ast-ksh.2013-06-28.
Test case:
./arch/linux.i386-64/bin/ksh -c 'namespace sp1 { compound -a c=(
[4][16]=( bool -a b=( [4][3]=true [4][5]=false ) ) ) } ; nameref
n=.sp1.c[4][16] ; printf "1=%q\n" "${n.b[4][@]}"'
1=
It should print $'1=true\n1=false'.
It looks to me that the combination of nameref and namespace do not
play well with each other.
Olga
--
, _ _ ,
{ \/`o;====- Olga Kryzhanovska -====;o`\/ }
.----'-/`-/ olga.kryzhanovska at gmail.com \-`\-'----.
`'-..-| / http://twitter.com/fleyta \ |-..-'`
/\/\ Solaris/BSD//C/C++ programmer /\/\
`--` `--`
, _ _ ,
{ \/`o;====- Olga Kryzhanovska -====;o`\/ }
.----'-/`-/ olga.kryzhanovska at gmail.com \-`\-'----.
`'-..-| / http://twitter.com/fleyta \ |-..-'`
/\/\ Solaris/BSD//C/C++ programmer /\/\
`--` `--`