bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problem with builtin 'read' and standard input


From: Enrique Perez-Terron
Subject: Re: problem with builtin 'read' and standard input
Date: Tue, 27 Jul 2004 16:57:01 +0200

On Tue, 2004-07-27 at 14:49, Chet Ramey wrote:
> > I'm trying to redirect data to the builtin 'read'.  I've no idea what's 
> > going wrong!
> > 
> > I believe this command
> >    echo "hello" | read myvar
> > should put "hello" into $myvar.  But $myvar is blank after execution.
> 
> Please read the Bash FAQ, question E4.

The FAQ was recently posted on this list. If you are not subscribed, try
google gnu.bash.bug FAQ:

  http://www.google.com/search?q=gnu.bash.bug+FAQ

The top hit, http://www.faqs.org/faqs/unix-faq/shell/bash/
does not seem to answer (perhaps too busy?), so you can try this one
instead:

  http://www.uni-giessen.de/faq/archiv/unix-faq.shell.bash/msg00000.html

Regards,
Enrique





reply via email to

[Prev in Thread] Current Thread [Next in Thread]