Consider these sequences:

$ touch stuff
$ typeset -A st*f
$ typeset | grep st
associative array stuff

$ set -o noglob
$ typeset -A st*f
ksh: typeset: st*f: invalid variable name

$ set -o glob
$ touch stuff[xyz]
$ typeset -A st*f[xyz]
ksh: typeset: st*f[xyz]: invalid variable name
typeset -A st*f\[xyz\]
$ typeset -A stuff[x*z]
$ typeset -A stuff[x?z]
$ typeset -A stuff\[x*z\]
$ typeset -p | grep stuff
typeset -A stuff=(['x*z']=() ['x?z']=() [xyz]=() )

I believe this may not have been intended, as other ways
to create shell variables do not do path expansion.

Thanks,
Paulo
_______________________________________________
ast-users mailing list
[email protected]
http://lists.research.att.com/mailman/listinfo/ast-users

Reply via email to