OK, that makes sense. Sorry for being confused. I thought that by this
level, ^D and EOF are equivalent. I should be able to check to see if
the character returned is ^D, then act accordingly.
Peter
On 07/27/2013 03:10 PM, Chet Ramey wrote:
On 7/27/13 1:32 PM, Andreas Schwab wrote:
Chris Dow
,
On 27 July 2013 06:37, Peter Olson wrote:
If read is invoked with the -n or -N options, then given an EOF, it returns
with a zero exit status.
Cannot reproduce.
$ echo $BASH_VERSION
4.2.45(2)-release
$ read -n1
In addition, if it is invoked with -n 3, for example, then given
ions for a work-around
if it can't?
Peter Olson