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

Aaro Koskinen aaro.koskinen at iki.fi
Fri Mar 15 23:17:11 UTC 2013


Hi,

On Sat, Mar 16, 2013 at 12:04:12AM +0100, Harald Becker wrote:
> Hi Matthew !
> >I've heard rumors that backticks are discouraged in favor of $( )...
> >Can we do the same for . in favor of source?  You can't exactly grep
> >for '.'
> 
> It was just a hint for novices that both syntax forms behave identical
> and description may be used for both. There was no preference which
> form shall be used, otherwise you are right. I prefer $() and source
> within scripts and tend to use backticks and dot on command line.

"source" is bashism, and "." should be preferred for portability.

A.


More information about the busybox mailing list