uutils / coreutils

Cross-platform Rust rewrite of the GNU coreutils
https://uutils.github.io/
MIT License
17.8k stars 1.28k forks source link

mv: Error message differs from GNU's mv when a source file does not exist #6836

Closed matrixhead closed 3 weeks ago

matrixhead commented 3 weeks ago

When using the uu-mv with multiple sources, if one of the specified sources does not exist, the error message produced by uu-mv differs from GNU's mv.

Example:

touch a; mkdir d;
mv  a b d/

GNU’s mv produces the following message:

mv: cannot stat 'b': No such file or directory

Whereas uu-mv outputs:

mv: cannot move 'b' to 'd/b': No such file or directory