cont'd - RE: 1.5.9: Trouble with setting variables using 'read' in a script
Jan Schormann
Jan.Schormann@BrainLAB.com
Thu May 6 15:27:00 GMT 2004
(Please excuse the unfinished last mail, I hit "Ctrl-Enter"
by accident.)
> - echo "text" | read var ; echo $var
> - cat file | read var ; echo $var
> - read var < file | echo $var
.. continuing from last time, all of these won't work
because you're always creating a new subshell.
Try
read var < file ; echo $var
Cheers,
Jan.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list