bug-bash
[Top][All Lists]
Advanced

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

set -e works incorrectly in subshells


From: Марк Коренберг
Subject: set -e works incorrectly in subshells
Date: Wed, 23 Nov 2011 16:26:09 +0600

Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-pc-linux-gnu'
-DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash'
-DSHELL -DHAVE_CONFIG_H   -I.  -I../bash -I../bash/include
-I../bash/lib   -g -O2 -Wall
uname output: Linux mmarkk-work 2.6.38-12-generic #51-Ubuntu SMP Wed
Sep 28 14:27:32 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
Machine Type: x86_64-pc-linux-gnu

Bash Version: 4.2
Patch Level: 8
Release Status: release

Repeat-By:
        address@hidden:~$ ( set -e; echo aaa; false; echo bbb )
        aaa
        address@hidden:~$ ( set -e; echo aaa; false; echo bbb ) || true
        aaa
        bbb
        address@hidden:~$
Expect:
        address@hidden:~$ ( set -e; echo aaa; false; echo bbb )
        aaa
        address@hidden:~$ ( set -e; echo aaa; false; echo bbb ) || true
        aaa
        address@hidden:address@hidden:~$



reply via email to

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