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: Collin Funk
Subject: Re: tests: avoid a false failure on Cygwin
Date: Sat, 26 Jul 2025 11:39:01 -0700
User-agent: Gnus/5.13 (Gnus v5.13)

Bruno Haible <bruno@clisp.org> writes:

>> +if ! echo '' > 'backslash\is\not\dir\sep'; then
>
> Negating the exit status of a command with ! is not portable [1].

Thanks for letting me know even though as PƔdraig said gl_POSIX_SHELL
checks this. I was not aware of this limitation in some shells.

> Suggestion: Swap the two branches of the 'if' statement, thus
> removing the need for negation.

I found that the issue has a simpler solution which avoids the need for
the other branch. I will reply to PƔdraig's response with details.

Collin



reply via email to

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