We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When using both -i/--interactive and -n/--no-clobber, GNU mv only uses the argument that comes last if the target exists.
-i/--interactive
-n/--no-clobber
$ touch aa.txt $ touch bb.txt $ mv aa.txt bb.txt -i -n # ignores -i mv: not replacing 'bb.txt' $ mv aa.txt bb.txt -n -i # ignores -n mv: overwrite 'bb.txt'?
With uutils mv, -n/--no-clobber "wins" in both cases:
$ touch aa.txt $ touch bb.txt $ cargo run mv aa.txt bb.txt -i -n mv: not replacing 'bb.txt' $ cargo run mv aa.txt bb.txt -n -i mv: not replacing 'bb.txt'
The text was updated successfully, but these errors were encountered:
Looks like we just default to -n
coreutils/src/uu/mv/src/mv.rs
Lines 219 to 232 in a97199f
Sorry, something went wrong.
mv: different behavior for -i -n and -n -i (uutils#4795)
f0533f5
Successfully merging a pull request may close this issue.
When using both
-i/--interactive
and-n/--no-clobber
, GNU mv only uses the argument that comes last if the target exists.With uutils mv,
-n/--no-clobber
"wins" in both cases:The text was updated successfully, but these errors were encountered: