Discussion:
[ast-developers] ksh93 can't find functions defined in the same namespace...
Roland Mainz
2013-08-28 00:26:45 UTC
Permalink
Hi!

----

While testing namespaces I hit another issue with functions on
ast-ksh.2013-08-14+latest patches from dgk for namespaces on SuSE
12.3/AMD64/64bit:
-- snip --
$ ksh -c '{ function f1 { print OK ; } ; function f2 { f1 ; } ; f2 ; } ; '
OK
$ ksh -c 'namespace a.b { function f1 { print OK ; } ; function f2 {
f1 ; } ; f2 ; } ; '
/home/test001/bin/ksh: f2: line 1: f1: not found
-- snip --
(the workaround is to call "f1" as ".a.b.f1" ...)

----

Bye,
Roland
--
__ . . __
(o.\ \/ /.o) roland.mainz at nrubsig.org
\__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer
/O /==\ O\ TEL +49 641 3992797
(;O/ \/ \O;)
Loading...