[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: problem with builtin 'read' and standard input
From: |
Chet Ramey |
Subject: |
Re: problem with builtin 'read' and standard input |
Date: |
Tue, 27 Jul 2004 08:49:28 -0400 |
> 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 lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
Live...Laugh...Love
Chet Ramey, ITS, CWRU chet@po.cwru.edu http://tiswww.tis.cwru.edu/~chet/