Hello,
I've noticed a strange behavior in ash (bb 1.5.1 and 1.6.1).
If the interactive shell finds the PATH env var set, it exports it and
using getenv("PATH") from a program run from the shell returns the
same path as "echo $PATH".
Instead, if no PATH var is defined at shell startup and ash sets its
own default paths, these are not exported and getenv("PATH") return
NULL.
Doing "export PATH" from the shell make things work.
Is this a desired behavior or a bug?
IMHO the PATH var should be exported also if set to ash defaults.
Alberto
_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox