[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
"exit" doesn't work from inside of PIPED read block
From: |
Blaine Simpson |
Subject: |
"exit" doesn't work from inside of PIPED read block |
Date: |
Sun, 18 Nov 2007 13:46:39 -0500 |
Configuration Information [Automatically generated, do not change]:
Machine: x86_64
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='x86_64'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-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 beyla 2.6.22.12-0.1-default #1 SMP 2007/11/06 23:05:18 UTC
x86_64 x86_64 x86_64 GNU/Linux
Machine Type: x86_64-suse-linux-gnu
Bash Version: 3.2
Patch Level: 25
Release Status: release
Description:
"exit" doesn't exit the current shell when inside of PIPED read blocks,
yet everything works find if the input comes from "redirection".
Repeat-By:
cat /tmp/atf | while read; do exit 3; done # for any text file /tmp/atf
Yet the following works
cat /tmp/atf | while read; do exit 3; done
- "exit" doesn't work from inside of PIPED read block,
Blaine Simpson <=