[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: -e does not work with subscript
From: |
Stepan Koltsov |
Subject: |
Re: -e does not work with subscript |
Date: |
Wed, 30 Jan 2008 00:24:55 +0300 |
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.
- -e does not work with subscript, yozh, 2008/01/28
- Re: -e does not work with subscript, Pierre Gaston, 2008/01/29
- Re: -e does not work with subscript, Stepan Koltsov, 2008/01/29
- Re: -e does not work with subscript, Pierre Gaston, 2008/01/29
- Re: -e does not work with subscript, Stepan Koltsov, 2008/01/29
- Re: -e does not work with subscript, Pierre Gaston, 2008/01/29
- Re: -e does not work with subscript, Stepan Koltsov, 2008/01/29
- Re: -e does not work with subscript, Bob Proulx, 2008/01/29
- Re: -e does not work with subscript,
Stepan Koltsov <=
- Re: -e does not work with subscript, Linda Walsh, 2008/01/29
Re: -e does not work with subscript, 龙海涛, 2008/01/29