From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 990 invoked from network); 3 May 1999 12:13:24 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 3 May 1999 12:13:24 -0000 Received: (qmail 26162 invoked by alias); 3 May 1999 12:13:03 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6204 Received: (qmail 26155 invoked from network); 3 May 1999 12:13:02 -0000 Message-Id: <9905031119.AA23585@ibmth.df.unipi.it> To: zsh-workers@sunsite.auc.dk (Zsh hackers list) Subject: Re: User installation script for new completion In-Reply-To: ""Bart Schaefer""'s message of "Mon, 03 May 1999 03:46:59 DFT." <990503034700.ZM15329@candle.brasslantern.com> Date: Mon, 03 May 1999 13:19:16 +0200 From: Peter Stephenson "Bart Schaefer" wrote: > On May 3, 12:00pm, Peter Stephenson wrote: > } This fails when functionargzero is not set. Great. Any better > } suggestions? > > 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. Maybe I'll add an option to compinit to pass down it's own path for use in the test --- it's not very useful for ordinary users, but could smooth things with compinstall. And I should turn . into $PWD. Maybe it's worth checking for Core etc. subdirectories at that point and adding them all to $fpath. Does anyone have any preferences for where to install functions, if I ever get round to this? I had imagined just putting them all (i.e. including Functions stuff) in one big directory. -- Peter Stephenson Tel: +39 050 844536 WWW: http://www.ifh.de/~pws/ Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy