Hey Bernhard.

An update on this:
POSIX guys pointed me to:
https://austingroupbugs.net/view.php?id=1872#c6956

That will still leave it as "allowed" for an implementation to take a
final non-terminated "line" as input, but still recommends against
doing so and still indicates the future direction which may change this
to no longer being allowed.

What it changes to the current 2024-edition text is:
- it no longer recommends to ignore any non-terminated last "line"
  but rather recommends as taking it as an error
- it changes the future directions accordingly, i.e. a future standard
  may not *require* a non-terminated line to be *ignored*, but rather
  *require* it to be considered an *error*
- It also recommends doing the same for the LF-newline terminated case,
  noting that from the standards PoV such case is anyway undefined
  behaviour, as the standard requires input to be a text file (which
  means all lines must be newline terminated).


So I'd still ask you to consider whether GNU's xargs can be modified
accordingly (and not just in some POSIXLY_CORRECT mode), as any other
behaviour seems truly dangerous to me.


Cheers,
Chris.
 

Reply via email to