Discussion:
[ast-developers] compound -A c ; bool c[foo].a=true does not work?
Wendy Lin
2015-01-21 21:57:43 UTC
Permalink
sh -c 'print ${.sh.version}'
Version ABIJM 93v- 2014-07-21

should the next line not print 'ok\ntrue'?

sh -c 'set -o nounset ; compound -A c ; bool c[foo].a=true ; ((
c[foo].a )) && print ok ; print ${c[foo].a}'
false

Wendy
David Korn
2015-01-22 01:28:52 UTC
Permalink
I will add this to my bug list. There seems to be a problem with adding
attributes to individual elements of an associative array.
Post by Wendy Lin
sh -c 'print ${.sh.version}'
Version ABIJM 93v- 2014-07-21
should the next line not print 'ok\ntrue'?
sh -c 'set -o nounset ; compound -A c ; bool c[foo].a=true ; ((
c[foo].a )) && print ok ; print ${c[foo].a}'
false
Wendy
Joshuah Hurst
2015-01-22 11:40:28 UTC
Permalink
Post by David Korn
I will add this to my bug list. There seems to be a problem with adding
attributes to individual elements of an associative array.
I get the same error for 1D or 3D indexed arrays if I replace [foo]
with [4] or [3][20][100] and compound -A with compound -a.
Post by David Korn
Post by Wendy Lin
sh -c 'print ${.sh.version}'
Version ABIJM 93v- 2014-07-21
should the next line not print 'ok\ntrue'?
sh -c 'set -o nounset ; compound -A c ; bool c[foo].a=true ; ((
c[foo].a )) && print ok ; print ${c[foo].a}'
false
Wendy
_______________________________________________
ast-developers mailing list
http://lists.research.att.com/mailman/listinfo/ast-developers
Josh

Loading...