Configuration Information [Automatically generated, do not change]: Machine: powerpc OS: linux-gnu Compiler: gcc -I/usr/src/packages/BUILD/bash-3.2 -L/usr/src/packages/BUILD/bash-3.2/../readline-5.2 Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='powerpc' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='powerpc-suse-linux-gnu' -DCONF_VENDOR='suse' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL -DHAVE_CONFIG_H -I. -I. -I./include -I./lib -O2 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -g -D_GNU_SOURCE -DRECYCLES_PIDS -Wall -pipe -g -fPIE -fprofile-use uname output: Linux igel 2.6.24-rc1 #4 SMP Wed Oct 31 13:12:05 CET 2007 ppc64 ppc64 ppc64 GNU/Linux Machine Type: powerpc-suse-linux-gnu
Bash Version: 3.2 Patch Level: 25 Release Status: release Description: When a compound command other than a subshell group is redirected and the redirection fails the exit status is not modfied. That only happens when the command is the first one in a sequential list. Repeat-By: $ touch w; chmod -w w $ { :; } > w; echo $? -bash: w: Permission denied 0 $ (exit 100) $ { :; } > w; echo $? -bash: w: Permission denied 100 $ :; { :; } > w; echo $? -bash: w: Permission denied 1