cc: [email protected]
Subject: Re: [ast-users] .set and .get disciplines not called for compound
variables
--------
> ksh93 2013-06-28 doesn't call the .set and .get disciplines for
> compound variables:
>
> ksh -c 'compound c; function c.set { print foo ; } ; c=(integer o=1) ;
> print -v c'
> (
> typeset -l -i o=1
> )
>
> ksh -c 'compound c; function c.get { print foo ; } ; c=(integer o=1) ;
> print -v c'
> (
> typeset -l -i o=1
> )
>
> This is sad because it robs ksh93 scripts from doing some interesting
> stuff, such as assigning a value to a compound variable and then set
> an extra compound variable element to compute extra things.
>
> Ced
> --
> Cedric Blancher <[email protected]>
> Institute Pasteur
> _______________________________________________
> ast-users mailing list
> [email protected]
> http://lists.research.att.com/mailman/listinfo/ast-users
>
I will look into adding this. However, unless, the get and set disciplines
aren't aren't the reverse of each other, typeset -p will not output variables
in a form that can be reinput.
Perhaps the get and set disciplines form compound variables should
not be applied for typeset -p.
I will add this to my todo list for possible implementation.
David Korn
[email protected]
_______________________________________________
ast-users mailing list
[email protected]
http://lists.research.att.com/mailman/listinfo/ast-users