Is parameter expansion supposed to take place in 'typeset'? The function
function f
{
typeset p=f t
ksh --version
set -x
typeset +f $p
t=$(typeset +f $p)
print "$t"
}
prints
version sh (AT&T Research) 1993-12-28 s+
+ typeset +f f
f #line 1 /local/bernd/tst/k
+ typeset +f f
+ t=''
+ print ''
It appears that no expansion is performed. However, if the assignment is
changed to
t=$(typeset +f $1)
$1 _does_ get expanded. This is inconsistent, I so guess it's a bug. In any
case the man page should make clear whether or not parameter expansion is
performed on the arguments.
Regards,
Bernd
--
Bernd Eggink
[EMAIL PROTECTED]
http://sudrala.de
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users