tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: sh read on files missing the final newline
> It depends on what you consider correct, surely.
Sure.
Sorry, I meant
> Silently act as if the missing newline were there?
The problem came up when a colleague edited a file with emacs, which seems
to allow a non-terminated final line, and the shell script interpreting
that file ignored that line, which lead to interesting results and was quite
hard to spot.
Home |
Main Index |
Thread Index |
Old Index