B19: reading from a pipe
Wed Apr 15 03:31:00 GMT 1998
I suppose there is a bug in your bash. When I enter the following
echo "string" | read variable; echo $variable
there is no output. However it works under the UNIX shell scripts and
that is what I expect. It seems your bash applies the pipe statements as
own process (with own stack). The alternative command
echo "string" | ( read variable; echo $variable )
operates very well but this would force me to change already written
UNIX shell scripts.
What can I do ?
For help on using this list (especially unsubscribing), send a message to
"email@example.com" with one line of text: "help".
More information about the Cygwin