bug-bash
[Top][All Lists]
Advanced

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

Re: set -e, braces and compound commands


From: Andreas Schwab
Subject: Re: set -e, braces and compound commands
Date: Fri, 11 Feb 2011 10:57:28 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

Daniel Villeneuve <daniel2villeneuve@videotron.ca> writes:

> For reference, I've consulted
> http://thread.gmane.org/gmane.comp.standards.posix.austin.general/282,
> http://thread.gmane.org/gmane.comp.shells.bash.bugs/13465 and
> the current public POSIX spec I have access to which still says:
>
> *-e*
>    When this option is on, if a simple command fails for any of the

A compound command is not a simple command.  Only failing simple
commands cause the shell to exit.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



reply via email to

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