|
Re: ash 'source' command: msg#00154linux.busybox
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 |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | rm -rf failure: 00154, Dan Kegel |
|---|---|
| Next by Date: | busybox 0.60.5 rm -rf has problems: 00154, Dan Kegel |
| Previous by Thread: | ash 'source' commandi: 00154, Denis Vlasenko |
| Next by Thread: | Re: ash 'source' command: 00154, Vladimir N. Oleynik |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |