This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: BUG? read and pipe
- To: Kjeld dot F dot Christensen at dxd dot ericsson dot se
- Subject: Re: BUG? read and pipe
- From: Chet Ramey <chet at nike dot ins dot cwru dot edu>
- Date: Thu, 9 Apr 1998 10:59:32 -0400
- Cc: gnu-win32 at cygnus dot com, chet at po dot cwru dot edu
- Read-Receipt-To: chet@po.CWRU.Edu
- Reply-To: chet at po dot cwru dot edu
> I have a problem combining the read command and a pipe in bash
>
> bash.exe-2.01$ echo ffff | read ddd
> bash.exe-2.01$ echo $ddd
>
> bash.exe-2.01$ echo ffff > e
> bash.exe-2.01$ read dd < e
> bash.exe-2.01$ echo $dd
> ffff
>
> Is this a bug or what?
No. Read the Bash FAQ, question 28.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
Chet Ramey, Case Western Reserve University Internet: chet@po.CWRU.Edu
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".