-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Is it possible to add a noclobber option? #2012
Comments
Not sure what you mean. marked doesn't write to any files. |
when we do |
You want an option to make sure the input file is not the same as the output file? |
note |
So it shouldn't overwrite the input file. I'm not exactly sure what you are looking for. |
If you don't want to overwrite the file can't you just make sure the files are different? I don't know how adding an option would help that. |
for example, Bash has an option to set |
I would be ok with that if you want to create a PR |
I actually can't find an example of a CLI implementing noclobber -- can someone here send an example of a CLI either reading from the bash environment to detect if the noclobber option was set, or explicitly passing a flag? |
|
Describe the feature
so that any existing file is not overwritten
Why is this feature necessary?
prevent accidentally overwriting the file
Describe alternatives you've considered
The text was updated successfully, but these errors were encountered: