[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: -e does not work with subscript

From: Bob Proulx
Subject: Re: -e does not work with subscript
Date: Tue, 29 Jan 2008 14:16:42 -0700
User-agent: Mutt/1.5.13 (2006-08-11)

Stepan Koltsov wrote:
> set -e
> ( cd some-dir && make )
> ...
> Most readers (and writers) expect script to fail if "make" failed. So
> I think that outer bash should exit with error on "(false)" :-)
> Of course, script can be rewritten as
> ( cd some-dir && make ) || false

Of course the script can also be written as:

  make -C some-dir



reply via email to

[Prev in Thread] Current Thread [Next in Thread]