On 11/6/26 18:22, Pádraig Brady wrote:
On 06/11/2026 19:29, Rob Landley wrote:
1) touch file1 file2; mv -i file1 file2 < /dev/null; ls file1

On Bookworm file1 is still there, in Trixie it's gone. "Lack of no" is
taken as yes. This violates this part of posix-2024:

the mv utility shall write a prompt to standard error and read a line
from standard input. If the response is not affirmative, mv shall do
nothing more with the current source_file and go on to any remaining
source_files.

I can't repro the file1 source file being moved on any upstream version.
Nor can I repro on mv 9.7 from trixie ?

Fresh reproduction sequence, let's see... wget the livecd, launch in kvm, and it's not failing there. Huh. Apt-get update/upgrade... tmpfs filled up, start again with -m 6144... killall firefox-esr to make room... and it's still not failing after update.

Re-check my vm with build tools and toybox test suite installed, yes the test is still failing there...

Ah, sorry, I extracted the test wrong:

mv file2 file1 2>/dev/null && [ -e file1 -a ! -e file2 ] && echo yes

Reproduced it by hand late at night and probably typoed the "ls file2". The failure is the same as the second issue, the && doesn't continue because because the return value changed.

So just the one issue, my bad.

Right the exit status changed on purpose in coreutils 9.2 with:
https://github.com/coreutils/coreutils/commit/7a69df889

Yup, that's what broke both tests.

The corresponding patch changed the exit status for -n, -i and --update.
The --update bit was reverted right after, so according to this report
the -i portion should perhaps be similarly reverted.

If gnu changed to match bsd and everybody is now consistent, maybe posix is what should change? Not my call, I just want TEST_HOST to work and can't match a moving target.

(I have $SKIP and "toyonly" for tests I only expect toybox to pass, but consider those inferior tests. Except trying to check mv --version being less than or equal to a given value for tests that also run on alpine, macos, and freebsd... difficult difficult lemon difficult.)

cheers,
Padraig

thanks,

Rob

Reply via email to