From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7379 invoked from network); 8 Mar 2005 10:23:54 -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:23:54 -0000 Received: (qmail 90879 invoked from network); 8 Mar 2005 10:23:47 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 8 Mar 2005 10:23:47 -0000 Received: (qmail 4885 invoked by alias); 8 Mar 2005 10:23:40 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8564 Received: (qmail 4870 invoked from network); 8 Mar 2005 10:23:39 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 8 Mar 2005 10:23:39 -0000 Received: (qmail 89909 invoked from network); 8 Mar 2005 10:23:39 -0000 Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by a.mx.sunsite.dk with SMTP; 8 Mar 2005 10:23:36 -0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1D8bs7-00083F-JA for zsh-users@sunsite.dk; Tue, 08 Mar 2005 11:23:27 +0100 Received: from 241.119-84-212.ippool.ndo.com ([212.84.119.241]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 08 Mar 2005 11:23:27 +0100 Received: from david by 241.119-84-212.ippool.ndo.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 08 Mar 2005 11:23:27 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@sunsite.dk From: zzapper Subject: Re: Autoloaded bash shell scripts treated as zsh Date: Tue, 08 Mar 2005 10:21:59 +0000 Message-ID: <6kuq215kpsui4qe9q13ed3dmoo64hd1loh@4ax.com> References: <1050308060521.ZM1835@candle.brasslantern.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 241.119-84-212.ippool.ndo.com X-Newsreader: Forte Free Agent 2.0/32.652 Sender: news X-Gmane-MailScanner: Found to be clean X-Gmane-MailScanner: Found to be clean X-MailScanner-From: gcszu-zsh-users@m.gmane.org X-MailScanner-To: zsh-users@sunsite.dk X-Spam-Checker-Version: SpamAssassin 3.0.2 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, score=-2.6 required=6.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.2 X-Spam-Hits: -2.6 On Tue, 08 Mar 2005 06:05:21 +0000, wrote: >On Mar 7, 11:41pm, zzapper wrote: >} >} autoload ${fpath[1]}/*(:t) #autoload all functions in $fpath > >Well, as you discovered, this actually means: "Assume the name of >every file in $fpath is also the name of a zsh function, and create >an autoload for every function so named." > >} As I also use the same directory for my legacy bash scripts, I was >} unpleasantly surprised to find that these scripts had also been >} autoloaded and were now being treated as zsh scripts. > >How (and why) did you expect zsh to tell the two sets of functions >apart if you put them all in the same directories? There's no magic. Bart, just forgot they were there! BTW what's the best way to reload/unload a shell function you are working on? I've been calling it directly ./myshell