Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: How do I do 'if X is a function, unfunction it' ?



> for example, if the command 'cp' has been previously defined as a function,  
> then I want to unfunction it

[[ `type cp` == *' function' ]] && unfunction cp

This works unmodified in ksh too.

Zoli



Messages sorted by: Reverse Date, Date, Thread, Author