Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: How do I do 'if X is a function, unfunction it' ?
- X-seq: zsh-users 1494
- From: Zoltan Hidvegi <hzoli@xxxxxxxxxx>
- To: luomat+Lists/Zsh/users@xxxxxxxxxxxxxxx (Timothy J Luoma)
- Subject: Re: How do I do 'if X is a function, unfunction it' ?
- Date: Fri, 1 May 1998 22:46:42 -0500 (CDT)
- Cc: zsh-users@xxxxxxxxxxxxxxx
- In-reply-to: <199805011545.LAA17525@xxxxxxxxxxxxxxx> from Timothy J Luoma at "May 1, 98 11:45:10 am"
> 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