Cedric Blancher
2013-07-15 15:31:55 UTC
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
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 <cedric.blancher at gmail.com>
Institute Pasteur
Cedric Blancher <cedric.blancher at gmail.com>
Institute Pasteur