On Mon, Jun 10, 2013 at 9:26 AM, Philippe Bergheaud
<[email protected]> wrote:
> $ typeset -A a=(['*']=1 ['@']=2)
> $ typeset -p a
> typeset -A a=(['*']=1 [@]=2) # missing quotes around @
In ast-ksh.2013-05-24 it seems that "!" and "@" aren't quoted (but IMO
should be quoted since these have a special meaning to the shell):
-- snip --
$ ksh -c $'typeset -A ar=( ["@"]=1 ["*"]=2 ["!"]=3 ["$"]=4 ["|"]=5
["\'"]=6 ["&"]=7 ["#"]=8 ["["]=9 ["]"]=10 ) ; print -v ar'
(
[!]=3
['#']=8
['$']=4
['&']=7
[$'\'']=6
['*']=2
[@]=1
['[']=9
[']']=10
['|']=5
)
-- snip --
----
Bye,
Roland
--
__ . . __
(o.\ \/ /.o) [email protected]
\__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer
/O /==\ O\ TEL +49 641 3992797
(;O/ \/ \O;)
_______________________________________________
ast-users mailing list
[email protected]
http://lists.research.att.com/mailman/listinfo/ast-users