From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7638 invoked from network); 8 Mar 2005 10:26:47 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 8 Mar 2005 10:26:47 -0000 Received: (qmail 98979 invoked from network); 8 Mar 2005 10:26:41 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 8 Mar 2005 10:26:41 -0000 Received: (qmail 8084 invoked by alias); 8 Mar 2005 10:26:34 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8565 Received: (qmail 8070 invoked from network); 8 Mar 2005 10:26:33 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 8 Mar 2005 10:26:33 -0000 Received: (qmail 97914 invoked from network); 8 Mar 2005 10:26:33 -0000 Received: from mailhost1.csr.com (HELO MAILSWEEPER01.csr.com) (81.105.217.43) by a.mx.sunsite.dk with SMTP; 8 Mar 2005 10:26:21 -0000 Received: from exchange03.csr.com (unverified [10.100.137.60]) by MAILSWEEPER01.csr.com (Content Technologies SMTPRS 4.3.12) with ESMTP id for ; Tue, 8 Mar 2005 10:24:49 +0000 Received: from news01.csr.com ([10.103.143.38]) by exchange03.csr.com with Microsoft SMTPSVC(5.0.2195.6713); Tue, 8 Mar 2005 10:27:48 +0000 Received: from news01.csr.com (localhost.localdomain [127.0.0.1]) by news01.csr.com (8.13.1/8.12.11) with ESMTP id j28AQJ7B017554 for ; Tue, 8 Mar 2005 10:26:19 GMT Received: from csr.com (pws@localhost) by news01.csr.com (8.13.1/8.13.1/Submit) with ESMTP id j28AQJsM017551 for ; Tue, 8 Mar 2005 10:26:19 GMT Message-Id: <200503081026.j28AQJsM017551@news01.csr.com> X-Authentication-Warning: news01.csr.com: pws owned process doing -bs To: zsh-users@sunsite.dk Subject: Re: Autoloaded bash shell scripts treated as zsh In-reply-to: <6kuq215kpsui4qe9q13ed3dmoo64hd1loh@4ax.com> References: <1050308060521.ZM1835@candle.brasslantern.com> <6kuq215kpsui4qe9q13ed3dmoo64hd1loh@4ax.com> Date: Tue, 08 Mar 2005 10:26:18 +0000 From: Peter Stephenson X-OriginalArrivalTime: 08 Mar 2005 10:27:48.0842 (UTC) FILETIME=[79C724A0:01C523C9] X-Spam-Checker-Version: SpamAssassin 3.0.2 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, score=-2.5 required=6.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.2 X-Spam-Hits: -2.5 zzapper wrote: > BTW what's the best way to reload/unload a shell function you are working on? I've had this function for ages. reload() { if (( $# == 0 )); then print "Reload what?" >&2 return 1 fi while (( $# )); do unfunction $1 && autoload $1 shift done } -- Peter Stephenson Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070 ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. **********************************************************************