> 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