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 does not overwrite files by default #210

Closed
lvanengelen opened this issue Jun 22, 2015 · 2 comments
Closed

cp does not overwrite files by default #210

lvanengelen opened this issue Jun 22, 2015 · 2 comments

Comments

@lvanengelen
Copy link

In POSIX cp would just overwrite a file by default, without requiring the -f option. This quite surprised me. Was this done to make the cp behaviour a bit saver? In that case, would it be possible to mention this in the docs?

@nfischer
Copy link
Member

I agree, this is something that probably should be documented. I think it would be even better to add the -n option and make -f the default (and simply keep it there for legacy reasons).

@nfischer
Copy link
Member

nfischer commented Feb 9, 2016

This is now fixed in ShellJS v0.6. Thanks for reporting this, @lvanengelen 👍

@nfischer nfischer closed this as completed Feb 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants