Re: "read line" ignoring last line
Stephane Chazelas <stephane_chazelas@yahoo.fr> writes:
> I don't think any shell implementation would discard such a
> line. I don't know of any that does.
I do know of cases where other utilities will not see the last line if
it's not terminated by a '\n'. I think I had problems with sed and/or
grep a decade ago (was probably an old Solaris system).
I remember it because I had to write a work-around for it.
--
Sending unsolicited commercial e-mail to this account incurs a fee of
$500 per message, and acknowledges the legality of this contract.
|