Re: 'read' primitive

2008-08-22 Thread Dave B
Bob Proulx wrote: > To get the entire line verbatim you would need to use the $REPLY > variable. Or also use IFS= read -r foo < bar -- D.

Re: 'read' primitive

2008-08-21 Thread Bob Proulx
David Lütolf wrote: > 'read' does not properly set variable when line ends with a > character > > Repeat-By: > ~$ echo "foo " > bar > ~$ read foo < bar > ~$ echo "-$foo-" > -foo- > > the output should of course be: -foo - This question was discussed recen