Re: weird behavior of set -e

2012-04-04 Thread Linda Walsh
mhenn wrote: Am 24.06.2011 11:51, schrieb Harald Dunkel: Hi folks, A colleague pointed me to this problem: If I run ( set -e; ( false; echo x ) ) in bash 4.1.5, then there is no screen output, as expected. If I change this to ( set -e; ( false; echo x ) || echo y ) then I get

Re: weird behavior of set -e

2011-06-24 Thread Greg Wooledge
http://mywiki.wooledge.org/BashFAQ/105 -- Why doesn't set -e (set -o errexit) do what I expected?

Re: weird behavior of set -e

2011-06-24 Thread Eric Blake
On 06/24/2011 03:51 AM, Harald Dunkel wrote: > Hi folks, > > A colleague pointed me to this problem: If I run > > ( set -e; ( false; echo x ) ) > > in bash 4.1.5, then there is no screen output, as > expected. If I change this to > > ( set -e; ( false; echo x ) || echo y ) > > then