BUG? read and pipe

Chet Ramey chet@nike.ins.cwru.edu
Thu Apr 9 09:01:00 GMT 1998


> 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".



More information about the Cygwin mailing list