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