On 3/27/25 3:00 PM, Clem Cole wrote:
Argh -- I standard corrected. We worked hard at the
beginning to keep that
crap out -- sigh.
But at least is does says: POSIX.1-2024 /_does not _//_distinguish between
text files and binary files_/ (see the ISO C standard)
It also says "The standard utilities that have such restrictions always
specify "text files" in their STDIN or INPUT FILES sections," so you
can't
avoid it.
awk is one such utility (sh is not). This is an application requirement, so
awk is required to add a newline at the end of a file that does not have
one.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet(a)case.edu
http://tiswww.cwru.edu/~chet/