|
| From: | Pádraig Brady |
| Subject: | Re: tests: avoid a false failure on Cygwin |
| Date: | Sat, 26 Jul 2025 14:57:45 +0100 |
| User-agent: | Mozilla Thunderbird Beta |
On 26/07/2025 11:44, Bruno Haible via GNU coreutils General Discussion wrote:
Hi Collin,+if ! echo '' > 'backslash\is\not\dir\sep'; thenNegating 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
| [Prev in Thread] | Current Thread | [Next in Thread] |