Roland Mainz
2013-09-10 18:42:45 UTC
Hi!
----
Calling a plain function from a user-defined type from within the same
namespace doesn't work with ast-ksh.2013-09-09 on SuSE
12.3/AMD64/64bit:
-- snip --
$ ksh -c 'set -o nounset ; namespace a.b { typeset -T x_t=( integer
i=9; function px { p "${_.i}" ; } ; ) ; function p { printf "%q\n"
"$1" ; } ; x_t x ; x.px ; }'
/home/test001/bin/ksh: x.px: line 1: p: not found
-- snip --
AFAIK the correct output would be:
-- snip --
9
-- snip --
----
Bye,
Roland
----
Calling a plain function from a user-defined type from within the same
namespace doesn't work with ast-ksh.2013-09-09 on SuSE
12.3/AMD64/64bit:
-- snip --
$ ksh -c 'set -o nounset ; namespace a.b { typeset -T x_t=( integer
i=9; function px { p "${_.i}" ; } ; ) ; function p { printf "%q\n"
"$1" ; } ; x_t x ; x.px ; }'
/home/test001/bin/ksh: x.px: line 1: p: not found
-- snip --
AFAIK the correct output would be:
-- snip --
9
-- snip --
----
Bye,
Roland
--
__ . . __
(o.\ \/ /.o) roland.mainz at nrubsig.org
\__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer
/O /==\ O\ TEL +49 641 3992797
(;O/ \/ \O;)
__ . . __
(o.\ \/ /.o) roland.mainz at nrubsig.org
\__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer
/O /==\ O\ TEL +49 641 3992797
(;O/ \/ \O;)