[Top][All Lists]

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

no error detection for process substitution

From: markd
Subject: no error detection for process substitution
Date: Sun, 24 Jun 2007 13:50:34 -0700 (PDT)

Configuration Information [Automatically generated, do not change]:
Machine: amd64
OS: freebsd6.2
Compiler: cc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='amd64' 
-DCONF_OSTYPE='freebsd6.2' -DCONF_MACHTYPE='amd64-portbld-freebsd6.2' 
-DCONF_VENDOR='portbld' -DLOCALEDIR='/usr/local/share/locale' -DPACKAGE='bash' 
-DSHELL  -DHAVE_CONFIG_H   -I.  -I. -I./include -I./lib  -I/usr/local/include 
-O2 -fno-strict-aliasing -pipe
uname output: FreeBSD osprey.kermodei.com 6.2-STABLE FreeBSD 6.2-STABLE #4: Fri 
May 18 18:46:31 PDT 2007     address@hidden:/usr/src/sys/amd64/compile/OSPREY  
Machine Type: amd64-portbld-freebsd6.2

Bash Version: 3.2
Patch Level: 17
Release Status: release

        There is no way to detected errors when doing process substitution.
        Commands in process substitutions that exit non-zero are not report
        and do not terminate a script running with -e.  This makes write a
        robust script that used command substation impossible.

        set -e
        echo <(false) || echo error was detected
        echo error not detected

        add an option similar to pipefail that aborts a compound command if
        a process substitution exits non-zero

reply via email to

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