On 1/30/08, Bob Proulx <bob@proulx.com> wrote:
> Stepan Koltsov wrote:
> > set -e
> > ( cd some-dir && ./build.sh )
> > ...
> > Most readers (and writers) expect script to fail if "./build.sh" failed. So
> > I think that outer bash should exit with error on "(false)" :-)
> > Of course, script can be rewritten as
> > ( cd some-dir && ./build.sh ) || false
>
> Of course the script can also be written as:
>
> make -C some-dir
-C flag of make is the reason while such strange behavior of bash is
not well known ;-)
S.