bug-bash
[Top][All Lists]
Advanced

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

Re: set -e in bash 4


From: Tobias Poschwatta
Subject: Re: set -e in bash 4
Date: Thu, 22 Oct 2009 10:34:08 +0200
User-agent: Mutt/1.4.2.2i

On Wed, Oct 21, 2009 at 09:56:49PM -0400, Chet Ramey wrote:
> Yes, this is the intended behavior.  

Thanks for clarifying.

> This is one of the things that
> came out of the discussions among the Posix working group.  It also
> matches historical practice.  

I searched the archives and found this thread from Feb 2009.
  http://thread.gmane.org/gmane.comp.standards.posix.austin.general/282

> Ironically, one of the examples we used
> while discussing the issue is very close to yours.

Indeed, very close:
 http://thread.gmane.org/gmane.comp.standards.posix.austin.general/282/focus=283
David Korn gave this example:

  ... it might seem strange that -e cannot be reenabled, but all
  shells seem to follow this historic practices, so that
        sh -ce '(set -e;false;echo good) || echo bad' 
  outputs good.


Thanks,
Tobias





reply via email to

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