[Top][All Lists]

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

weird behavior of set -e

From: Harald Dunkel
Subject: weird behavior of set -e
Date: Fri, 24 Jun 2011 11:51:27 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20110620 Lightning/1.0b2 Mnenhy/0.8.3 Thunderbird/3.1.10

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 "x" instead of "y". How comes?

Any helpful comment would be highly appreciated.


reply via email to

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