From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5448 invoked from network); 3 May 1999 16:15:15 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 3 May 1999 16:15:15 -0000 Received: (qmail 14196 invoked by alias); 3 May 1999 16:14:59 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6206 Received: (qmail 14186 invoked from network); 3 May 1999 16:14:46 -0000 From: "Bart Schaefer" Message-Id: <990503091224.ZM16462@candle.brasslantern.com> Date: Mon, 3 May 1999 09:12:23 -0700 In-Reply-To: <9905031119.AA23585@ibmth.df.unipi.it> Comments: In reply to Peter Stephenson "Re: User installation script for new completion" (May 3, 1:19pm) References: <9905031119.AA23585@ibmth.df.unipi.it> X-Mailer: Z-Mail (4.0b.820 20aug96) To: zsh-workers@sunsite.auc.dk (Zsh hackers list) Subject: Re: User installation script for new completion MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On May 3, 1:19pm, Peter Stephenson wrote: } Subject: Re: User installation script for new completion } } > Have it test [[ -o functionargzero ]] and skip this when it's not set? } } That doesn't really matter, since if the option isn't set, $0 is the shell } name and won't have a / in, so the test fails anyway. Eh? $0 will have a / in it if the shell was invoked by any mechanism other than path search, or even if PATHDIRS is set and a partial path was used: zagzig% echo $0 ../zsh-3.1.5-build/zsh zagzig% unsetopt functionargzero zagzig% function foo() { echo $0 } zagzig% foo ../zsh-3.1.5-build/zsh zagzig% -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com