bug-bash
[Top][All Lists]
Advanced

[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: Tue, 29 Jan 2008 21:09:18 +0300

What is "simple command"?

Is

===
( false ) || false
===

simple? Seems like it is not, however

===
set -e

( false ) || false

echo "end"
===

Prints nothing and exits with error.

S.

On 1/29/08, Pierre Gaston <address@hidden> wrote:
> On Jan 29, 2008 10:04 AM, Stepan Koltsov <address@hidden> wrote:
> >
> > Bash must exit the shell too. Because
> >
> > $ bash -ce '(false); echo $?'
> > 1
> >
> > S.
> >
>
> (false) is a compound command, the bash exits with set -e only if a
> simple command exits with false
>




reply via email to

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