[BusyBox] ash 'source' command
Felipe Kellermann
stdfk at terra.com.br
Fri Jul 25 07:32:30 UTC 2003
On Fri, 25 Jul 2003 9:37am +0300, Denis Vlasenko wrote:
> will happily include file.sh from current dir.
> In ash, it won't, you'll need to . ./file.sh
>
> I dunno who's right in a standards sense,
> but I think ash should mimic bash since bash
> is used on majority of Linux system.
Hi Denis,
``RATIONALE
Some older implementations searched the current directory for the
file, even if the value of PATH disallowed it. This behavior was omitted
from this volume of IEEE Std 1003.1-2001 due to concerns about introducing
the susceptibility to trojan horses that the user might be trying to avoid
by leaving dot out of PATH.'' --The Open Group Base Specifications Issue 6
You have to append a `current' dot to your $PATH environment,
~ $ PATH="$PATH:." && echo $PATH && . test.sh
/sbin:/usr/sbin:/bin:/usr/bin:.
local
--
Felipe Kellermann
More information about the busybox
mailing list