From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4677 invoked from network); 16 Oct 1999 13:56:57 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 16 Oct 1999 13:56:57 -0000 Received: (qmail 7645 invoked by alias); 16 Oct 1999 13:56:51 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8299 Received: (qmail 7637 invoked from network); 16 Oct 1999 13:56:50 -0000 To: zsh-workers@sunsite.auc.dk Subject: Re: PATCH: _urls again (Re: setopt localoptions noautoremoveslash) References: <199910151210.OAA18066@beta.informatik.hu-berlin.de> <38074889.6DCA13F@u.genie.co.uk> MIME-Version: 1.0 (generated by AKEMI 1.13.2 - =?ISO-2022-JP?B?Ig==?= =?ISO-2022-JP?B?GyRCQTA0Y0s8GyhCIg==?=) Content-Type: text/plain; charset=US-ASCII From: Tanaka Akira Date: 16 Oct 1999 22:56:48 +0900 In-Reply-To: Oliver Kiddle's message of "Fri, 15 Oct 1999 16:30:17 +0100" Message-ID: User-Agent: Chao-gnus/6.12.5 AKEMI/1.13.2 (=?ISO-2022-JP?B?GyRCQTAbKEI=?= =?ISO-2022-JP?B?GyRCNGNLPBsoQg==?=) FLAM-DOODLE/1.12.6 (=?ISO-2022-JP?B?GyRCM3cbKEI=?= 10R4.0/5.0) Emacs/20.4 (sparc-sun-solaris2.6) MULE/4.0 (HANANOEN) In article <38074889.6DCA13F@u.genie.co.uk>, Oliver Kiddle writes: > > -#autoload > > +#compdef curl > > Shouldn't this be done in _webbrowser. Or we should do what I suggested > before which is to ditch _webbrowser, add the programs to a compdef in > _urls and negate the meaning of -f to _urls. I don't think so. The name of the function should show its (default) behaviour. If _urls complete files by default, it should be renamed to _filesurls or some similar name. > > > * Use [[ ... ]] instead of [ ... ]. > > Could someone please explain why [[ ... ]] seems to be prefered where > both forms provide the same functionality ? Sven also changed my use of > [ -d ... ] to use the double square brackets. Is it faster or something? I'm not sure about this. But I believe the description of `test' in zshbuiltins(1). -- Tanaka Akira