-
-
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
cp: -i prompts in the right place and other improv #4925
Conversation
GNU testsuite comparison:
|
tests/by-util/test_cp.rs
Outdated
fn test_cp_arg_interactive_update() { | ||
// -u -i won't show the prompt to validate the override or not | ||
// Therefore, the error code will be 0 | ||
fn test_cp_arg_interactive_verbose() { | ||
let (at, mut ucmd) = at_and_ucmd!(); | ||
at.touch("a"); | ||
at.touch("b"); | ||
ucmd.args(&["-i", "-u", "a", "b"]) | ||
ucmd.args(&["-vi", "a", "b"]) | ||
.pipe_in("N\n") | ||
.succeeds() | ||
.no_stdout(); | ||
.fails() | ||
.stdout_is("skipped 'b'\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.
What's the reason for replacing the -iu
-test with a -vi
-test?
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.
typo, let me fix that :)
240b247
to
a2e8004
Compare
GNU testsuite comparison:
|
Should fix tests/cp/cp-i.sh
GNU testsuite comparison:
|
No description provided.