From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17072 invoked from network); 2 May 1998 03:51:55 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 2 May 1998 03:51:55 -0000 Received: (from list@localhost) by math.gatech.edu (8.8.5/8.8.5) id XAA24313; Fri, 1 May 1998 23:46:53 -0400 (EDT) Resent-Date: Fri, 1 May 1998 23:46:43 -0400 (EDT) From: Zoltan Hidvegi Message-Id: <199805020346.WAA00979@hzoli.home> Subject: Re: How do I do 'if X is a function, unfunction it' ? In-Reply-To: <199805011545.LAA17525@luomat.peak.org> from Timothy J Luoma at "May 1, 98 11:45:10 am" To: luomat+Lists/Zsh/users@luomat.peak.org (Timothy J Luoma) Date: Fri, 1 May 1998 22:46:42 -0500 (CDT) Cc: zsh-users@math.gatech.edu X-Mailer: ELM [version 2.4ME+ PL31 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Resent-Message-ID: <"2M09s.0.Fx5.YSfIr"@math> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/1494 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu > 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