You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
}