This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
B19: reading from a pipe
- To: gnu-win32 at cygnus dot com
- Subject: B19: reading from a pipe
- From: Guenther Mayerhoffer <guenther dot mayerhoffer at gmx dot de>
- Date: Wed, 15 Apr 1998 12:29:43 +0200
- Reply-To: guenther dot mayerhoffer at gmx dot de
Hi,
I suppose there is a bug in your bash. When I enter the following
command
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
"gnu-win32-request@cygnus.com" with one line of text: "help".