coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tests: avoid a false failure on Cygwin


From: Bruno Haible
Subject: Re: tests: avoid a false failure on Cygwin
Date: Sat, 26 Jul 2025 12:44:45 +0200

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






reply via email to

[Prev in Thread] Current Thread [Next in Thread]