ash: "source <nonexistent file>" makes ash exit?

Mike Frysinger vapier at gentoo.org
Fri Mar 15 23:45:20 UTC 2013


On Friday 15 March 2013 19:38:28 Harald Becker wrote:
> >"source" is bashism, and "." should be preferred for portability.
> 
> Definitely not! Even very old Unix shells (and alike) back in the 80th
> accepted both syntax forms (but shells are different and not all are
> standards conform). I do not know, what the standards documents tell
> about this, I prefere "source" in scripts (sh not bash) for it's better
> readability (and it's easier to search).

"source" is not in POSIX and thus is not technically portable.  dash for one 
does not support it.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20130315/b27a1709/attachment.asc>


More information about the busybox mailing list