Re: set -e and OR-lists

2007-02-23 Thread Chet Ramey
Johan Hovold wrote: > Hi, > > Is the following behaviour intended or a bug in bash (3.1.17(1)-release)? The > command list > > (set -e; false; echo hello) > > does not print hello and has non-zero exit status. All fine. If I try to use > this fact to display an error message the semantics

set -e and OR-lists

2007-02-22 Thread Johan Hovold
Hi, Is the following behaviour intended or a bug in bash (3.1.17(1)-release)? The command list (set -e; false; echo hello) does not print hello and has non-zero exit status. All fine. If I try to use this fact to display an error message the semantics changes. The following command (se