[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: no trailing newline causes read to fail
From: |
Stephane Chazelas |
Subject: |
Re: no trailing newline causes read to fail |
Date: |
Mon, 4 Oct 2004 07:56:24 +0100 |
User-agent: |
Mutt/1.5.6i |
On Fri, Oct 01, 2004 at 01:11:41PM -0400, Paul Jarc wrote:
> Stephen Samuel <samuel@bcgreen.com> wrote:
> > At the end of the loop '$line' is empty (i.e. the last line is lost).
>
> See entry E4 in the bash FAQ.
[...]
No, E4 is about read being run in a subshell. OP's problem is
for read on non-text input (an unterminated line causes read to
exit with a non-zero exit status).
--
Stephane
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________