-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
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
mv: Show 'skipped' when a file isn't overwriten #4905
Conversation
GNU testsuite comparison:
|
@cakebaker @tertsdiepraam
works locally |
GNU testsuite comparison:
|
Hm, the code looks fine and works locally, too. Maybe it's the unnecessary |
9f3226e
to
7bdfa5c
Compare
GNU testsuite comparison:
|
I used ignore_stdin_write_error to ignore the stdin |
Not really, but I have some vague recollection of this happening due to nextest in some other PR? |
tests/by-util/test_mv.rs
Outdated
at.touch("a"); | ||
at.touch("b"); | ||
ucmd.args(&["-vin", "a", "b"]) | ||
.pipe_in("y\n") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you use pipe_in
in this test case? It seems to be unnecessary as the test also works without it.
.pipe_in("y\n") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
because you want to test the yes and no behavior, no ? :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, of course :) However, in this specific case, there is no yes/no-behavior to test because there is no such behavior when using -vin
. It doesn't matter what you pipe in, the output will always be the same.
Should fix tests/mv/mv-n.sh
GNU testsuite comparison:
|
Should fix tests/mv/mv-n.sh