bug-bash
[Top][All Lists]
Advanced

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

Bash "read" command seems to ignore piped input


From: Hunter, Bryan
Subject: Bash "read" command seems to ignore piped input
Date: Mon, 29 Jul 2002 14:50:01 -0400

Configuration Information [Automatically generated, do not change]:
Machine: i386
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i386'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i386-redhat-linux-gnu'
-DCONF_VENDOR='redhat' -DSHELL -DHAVE_CONFIG_H  -D_GNU_SOURCE
-D_FILE_OFFSET_BITS=64  -I.  -I. -I./include -I./lib -I/usr/include -O2
-march=i386 -mcpu=i686
uname output: Linux pavo52 2.4.7-10 #1 Thu Sep 6 17:27:27 EDT 2001 i686
unknown
Machine Type: i386-redhat-linux-gnu

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

Description:
        The bash builtin "read" command does not seem to handle piped input.
I expect piped input to be handled like terminal input.  The Posix shell
version in HP-UX does do this.

Repeat-By:
        echo "12 34 56" | read A B C
        echo $C $B $A
        expected return "56 34 12"
        actually returns nothing



reply via email to

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