[TUHS] non-Posix input files
Chet Ramey via TUHS
tuhs at tuhs.org
Fri Mar 28 05:05:52 AEST 2025
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 at case.edu http://tiswww.cwru.edu/~chet/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 203 bytes
Desc: OpenPGP digital signature
URL: <http://www.tuhs.org/pipermail/tuhs/attachments/20250327/77427089/attachment-0001.sig>
More information about the TUHS
mailing list