On 26/07/2025 11:44, Bruno Haible via GNU coreutils General Discussion wrote:
Hi Collin,
+if ! echo '' > 'backslash\is\not\dir\sep'; then
Negating the exit status of a command with ! is not portable [1].
Suggestion: Swap the two branches of the 'if' statement, thus
removing the need for negation.
Bruno
[1]
https://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.72/html_node/Limitations-of-Builtins.html
Doesn't gl_POSIX_SHELL find a shell that supports !
We've other instances of `! command` in use anyway.
cheers,
Padraig