[Top][All Lists]

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

set -e is ineffective for subshells

From: Paul Jarc
Subject: set -e is ineffective for subshells
Date: Mon, 15 Oct 2001 17:48:37 -0400
User-agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/20.7

Configuration Information [Automatically generated, do not change]:
Machine: i686
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i686' 
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i686-pc-linux-gnu' 
-I./include -I./lib -I/pkg/bash-2.05-4-sh/include -O2 -pipe -mpentium
uname output: Linux multivac.cwru.edu 2.4.4 #1 SMP Fri May 11 16:28:16 EDT 2001 
i686 unknown
Machine Type: i686-pc-linux-gnu

Bash Version: 2.05
Patch Level: 0
Release Status: release

(This is actually patch level 4.  Dunno why bashbug doesn't know that.)

        The -e switch does not cause bash to exit when a subshell
        exits with nonzero status.

        bash -e '(exit 1); echo still here'

reply via email to

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