问题
I have done this:
$ z() { echo 'hello world'; }
How do I get rid of it?
回答1:
unset -f z
Will unset the function named z. A couple people have answered with:
unset z
but if you have a function and a variable named z only the variable will be unset, not the function.
来源:https://stackoverflow.com/questions/245406/how-do-i-delete-a-shell-function