The -I default-command case is a good reminder that a rewrite can look done if you only test xargs -I R echo R. printf 'hello\nworld\n' | xargs -I R is the one that actually checks whether the replace string is a no-op when the command has no argv to start with.
The --eof -l pairing is the other one I'd keep in a compatibility suite: optional-argument flags are where a stricter parser silently eats the next token. Same class as -a -foo.
The 9.12-vs-9.4 pin is worth repeating too. Once CI is on an older GNU, a correct 9.12 case looks like a product bug, and people start skipping failures. Tagging the version-sensitive specs (gnu-9.5) is cleaner than weakening them.
c-wind
The
-Idefault-command case is a good reminder that a rewrite can look done if you only testxargs -I R echo R.printf 'hello\nworld\n' | xargs -I Ris the one that actually checks whether the replace string is a no-op when the command has no argv to start with.The
--eof -lpairing is the other one I'd keep in a compatibility suite: optional-argument flags are where a stricter parser silently eats the next token. Same class as-a -foo.The 9.12-vs-9.4 pin is worth repeating too. Once CI is on an older GNU, a correct 9.12 case looks like a product bug, and people start skipping failures. Tagging the version-sensitive specs (
gnu-9.5) is cleaner than weakening them.