-
Notifications
You must be signed in to change notification settings - Fork 178
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
[Question] How to correctly answer "Proceed? (y/n)" when using trash-empty in script? #333
Comments
I did some code reading, I found that the I often check a command's man page first. If the man page exists, I assume that it would show me the complete flags. It would not have crossed my mind that I need to check |
No manpage changes? I found an answer to my question, but maybe you can make this specific information easier to find. |
Additional suggestion: Also add an |
Ok, we can reopen this. If you want to be solved quickly you can change man pages by yourself and send a pull request, the file is man/man1/trash-empty.1. And you can add an -f example to README. These documentation PR are very welcome. |
Same thing confused me when I tried to use it. Please tweak the manpage. |
I have been testing the behavior of
trash-empty
because I want to use it in a script.I've found that doing
echo 'n' | trash-empty
ortrash-empty <<< n
still continues to empty the trash even though answering the prompt with n manually actually cancels the action.I know that answering no/n is not something anyone would do in a script, but it bothers me that it doesn't behave consistently.
The text was updated successfully, but these errors were encountered: