Le 07/08/2010 00:22, [email protected] a écrit :
> 
> On further experimentation, it's not specific to declared type variables, it's
> just that the failure isn't caught otherwise:
> $ cat kshtest4
> #!/opt/ast/bin/ksh
> 
> typeset -a c
> integer xxx=0
> c[xxx].xxxx=X
> c[xxx].yyyy=AB
> c[xxx].zzzz=Z
> typeset -p c[0]
> 
> $ env - /opt/ast/bin/ksh ./kshtest4
> typeset -C c[0]=(xxxx=X;zzzz=Z;)

this one works under cygwin 1.7 :

# typeset -a c
...
# typeset -p c[0]
typeset -C c[0]=(xxxx=X;yyyy=AB;zzzz=Z;)
# echo ${.sh.version}
Version JM 93t+ 2010-03-05
# uname -a
CYGWIN_NT-6.0 pcvista 1.7.5(0.225/5/3) 2010-04-12 19:07 i686 Cygwin

but the above one don't :

# typeset -T ctype=(typeset yyyy)
...
# typeset -p c[0]
ctype c[0]=ksh93: typeset: xxxx: is not an element of c[0]

however, the error is raised on typeset -p and not on the assignment !
Regards,

Cyrille Lefevre
-- 
mailto:[email protected]



_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users

Reply via email to