Skip to content
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: don't show msg with cp -i -v --update=older a b if a is older than b #7296

Open
cakebaker opened this issue Feb 11, 2025 · 0 comments
Open
Labels

Comments

@cakebaker
Copy link
Contributor

While reviewing #7287 I noticed that we show an 'a' -> 'b' -message with cp -i -v --update=older a b if a is older than b and thus b is not overwritten:

$ echo "a" > a
$ echo "b" > b
$ cargo run cp -i -v --update=older a b
'a' -> 'b'
$ cat b
b

With GNU cp, there is no such message:

$ echo "a" > a
$ echo "b" > b
$ cp -i -v --update=older a b
$ cat b
b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant