I tried to get name spaces and FPATH working together but for ast-ksh
2012-02-29 his does not work. If I call an undefined function ubbi in
the name space foo.bar with FPATH pointing to /tmp/shfunclib I see
that ksh only searches for /tmp/shfunclib/ubbi:
$ mkdir /tmp/shfunclib ; strace ksh -c 'FPATH=/tmp/shfunclib ;
namespace foo { namespace bar { integer i=5 ; ubbi ; } ; } ' 2>&1 |
fgrep /tmp/shfunclib
execve("/home/test001/bin/ksh", ["ksh", "-c", "FPATH=/tmp/shfunclib ;
namespace"...], [/* 66 vars */]) = 0
stat("/tmp/shfunclib", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/tmp/shfunclib/ubbi", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/tmp/shfunclib/ubbi", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/tmp/shfunclib/ubbi", O_RDONLY) = -1 ENOENT (No such file or directory)
But in this case IMO ksh should search - in this order -
/tmp/shfunclib/.foo.bar.ubbi, then /tmp/shfunclib/.foo.ubbi (parent
name space) and then /tmp/shfunclib/ubbi to find this function.
David, what do you think?
Olga
--
, _ _ ,
{ \/`o;====- Olga Kryzhanovska -====;o`\/ }
.----'-/`-/ [email protected] \-`\-'----.
`'-..-| / http://twitter.com/fleyta \ |-..-'`
/\/\ Solaris/BSD//C/C++ programmer /\/\
`--` `--`
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users