> Description:
> read silently fails when stdin is piped to it. -u switch does not
> help.
> Redirection works fine.
>
This and your other bug result from the fact that the commands in the
pipe run in subshells.
echo foo | read # doesn't work because a subshell cannot modify the
pa
Blaine Simpson wrote:
> read silently fails when stdin is piped to it. -u switch does
> not help. Redirection works fine.
Same as the other problem with exit in a pipeline. Pipelines operate
in subshells. Environment variables are local to the process. Please
see question E4 in the bash
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_MAC