-
Notifications
You must be signed in to change notification settings - Fork 735
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
feat: cp & mv should not overwrite recently created files #631
feat: cp & mv should not overwrite recently created files #631
Comments
@nfischer I would like to fix this issue.
Please correct me if I am wrong. |
@uttpal Help would be very appreciated! Yes, I believe your understanding is correct. If in doubt, you can always try out GNU cp/mv on a Linux system. |
@nfischer
|
You're right, I was mistaken. Thanks for double checking |
If you have a copy command like:
You should get an error that says something like:
We're currently silently overwriting files that we created in that same copy command, but should instead provide a warning and refuse to copy the second file.
The behavior should stay the same with
-f
and-r
, butcp
does not give the warning with directories or their contents.The warning is never present with the
-n
flag.This warning should also be presented for the
mv
command.The text was updated successfully, but these errors were encountered: