-
Notifications
You must be signed in to change notification settings - Fork 95
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
Command intercept failure #163
Comments
This is a duplicate of #155.
You need to set it up by yourself by overriding The command will be run in an unusual way1 with a naive implementation of such a strategy, but if you care about it, you can use @d630's strategy mentioned in #155 (comment); you can translate Footnotes
|
I want to know what to return in the preexec function so that the command will not continue executing. I tried
return 1
, but the command still executed.function preexec () {
if [[ "${1}" == "rm" ]]; then
return 1
fi
}
The text was updated successfully, but these errors were encountered: