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

Cathey, Jim jcathey at ciena.com
Sat Mar 16 00:52:16 UTC 2013


"source" comes from the C shell.
The Bourne shell (and the Korn shell
successor) did not have it.

Bash was probably the first to suck in
both.

-- Jim

-----Original Message-----
From: busybox-bounces at busybox.net [mailto:busybox-bounces at busybox.net] On Behalf Of Harald Becker
Sent: Friday, March 15, 2013 5:02 PM
To: Mike Frysinger
Cc: busybox at busybox.net
Subject: Re: ash: "source <nonexistent file>" makes ash exit?

Hi Mike !

>"source" is not in POSIX and thus is not technically portable.

Not in POSIX? Wow, who removed this? Even old AT&T systems did
understand the "source".

... and just a hint about technically portable:

alias source=.

... and even dash shall understand "source"

--
Harald
_______________________________________________
busybox mailing list
busybox at busybox.net
http://lists.busybox.net/mailman/listinfo/busybox


More information about the busybox mailing list