Re: Error in read implementation and/or documentation

2013-07-27 Thread Peter Olson
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

Re: Error in read implementation and/or documentation

2013-07-27 Thread Peter Olson
, 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

Error in read implementation and/or documentation

2013-07-27 Thread Peter Olson
ions for a work-around if it can't? Peter Olson