Janis Papanagnou schrieb:
From: [email protected]

The following one line example should print "cc bb aa" but yields to a
syntax error:

ksh93 -c 'typeset -a a=( [0]="aa" [1]="bb" [2]="cc" ) ; typeset -m
'j=a[0]' ; typeset -m 'a[0]=a[1]' ; typeset -m 'a[1]=j' ; print
"$...@]}"'
ksh93[1]: typeset: : invalid variable name

Is this a bug or am I doing something wrong?

What (do you think) is option -m supposed to do?
I cannot find it documented in Bolsky/Korn, nor
is it listed with typeset --man (I'm using ksh93r).
It looks like your ksh complains on the option;
what happens if you just omit that -m option?

In ksh93t, "typeset --help" says:

-m Move. The value is the name of a variable whose value will be moved to name. The orignal variable will be
                  unset. Cannot be used with any other options.

Regards,
Bernd


--
Bernd Eggink
http://sudrala.de
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users

Reply via email to