bug-bash
[Top][All Lists]
Advanced

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

Re: set -e is not clearly documented


From: Greg Wooledge
Subject: Re: set -e is not clearly documented
Date: Mon, 7 Oct 2013 08:17:33 -0400
User-agent: Mutt/1.4.2.3i

On Mon, Oct 07, 2013 at 11:01:11AM +0200, Bart?omiej Palmowski wrote:
> $ ( set -e; echo foo; false; echo bar; ) # this one is expected
> foo
> $ ( set -e; echo foo; false; echo bar; ) || true # this one is not expected
> foo
> bar

set -e is useless rubbish that should be avoided.
See http://mywiki.wooledge.org/BashFAQ/105 for details.

Bash is required to IMPLEMENT set -e because it's part of the POSIX
specification.  You are not required to USE it.



reply via email to

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