delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/04/17/03:54:12

From: Kjeld DOT F DOT Christensen AT dxd DOT ericsson DOT se
Subject: Re: BUG? read and pipe
17 Apr 1998 03:54:12 -0700 :
Sender: root AT cygnus DOT com
Message-ID: <H00000b00004b377.cygnus.gnu-win32@MHS>
References: <980409145932 DOT AA07604 DOT SM AT nike DOT ins DOT cwru DOT edu>
To: chet AT nike DOT ins DOT cwru DOT edu
Cc: chet AT po DOT cwru DOT edu, Kjeld DOT F DOT Christensen AT dxd DOT ericsson DOT se,
gnu-win32 AT cygnus DOT com
MIME-Version: 1.0

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

OK, that explains it. 
But apparantly the Korn Shell can handle it. 
Thats where im porting the code from.

  Kjeld

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019