Trying to get my toybox tests to pass with TEST_HOST=1 I encountered regressions in mv between the coreutils 9.1 in Devuan Daedalus (fork of Debian Bookworm) and the coreutils 9.7 in Devuan Excalibur (Debian Trixie). Both changes violate posix 2024 from
https://pubs.opengroup.org/onlinepubs/9799919799/utilities/mv.html

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.

2) touch file1 file2; echo n | mv -i file1 file2 && echo yes

The return code of mv -i when given "n" was 0 in Bookworm and 1 in Trixie. This violates this part of posix-2024:

EXIT STATUS

    The following exit values shall be returned:

     0
All requested files (excluding files where a non-affirmative response was given to a request for confirmation) were successfully moved.
    >0
        An error occurred.

Again, both tests passed on Devuan Daedalus (I.E. Bookworm/9.1) but not Excalibur (Trixie/9.7).

Rob

P.S. I have no idea if they're fixed in current git, I tried to bisect as a courtesy before repoting but can't build git because there's no ./configure and ./bootstrap wants more prerequisite packages than I'm willing to install. But they're still in the fully updated distro.

Reply via email to