Joel Hammer wrote:
% > Mucking about with IFS is not smart, as I said in my last message.
% > Have a look at read's -d option, which will get you where you want to
% > go. 
% > 
% I have checked:
% man bash
% The online bash reference manual
%   http://gnu.senet.com.au/bash-2.01/bashref.html#SEC17
% My bash O'Reilly book
% My Unix in a nutshell book
% My Linux in a nutshell book
% 
% None of them mention the -d option in read.
$ echo $SHELL
/bin/bash2
$ help read
read: read [-ers] [-t timeout] [-p prompt] [-a array] [-n nchars] 
[-d delim] [name ...]
...
this signifies `raw' input, and backslash escaping is disabled.  The
-d option causes read to continue until the first character of DELIM is
read, rather than newline.  If the `-p' option is supplied, the string
...

Kurt
-- 
People who have no faults are terrible; there is no way of taking
advantage of them.
_______________________________________________
http://linux.nf -- [EMAIL PROTECTED]
Archives, Subscribe, Unsubscribe, Digest, Etc 
->http://linux.nf/mailman/listinfo/linux-users

Reply via email to