Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: _urls again (Re: setopt localoptions noautoremoveslash)
- X-seq: zsh-workers 8299
- From: Tanaka Akira <akr@xxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: PATCH: _urls again (Re: setopt localoptions noautoremoveslash)
- Date: 16 Oct 1999 22:56:48 +0900
- In-reply-to: Oliver Kiddle's message of "Fri, 15 Oct 1999 16:30:17 +0100"
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <199910151210.OAA18066@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <38074889.6DCA13F@xxxxxxxxxxxxx>
In article <38074889.6DCA13F@xxxxxxxxxxxxx>,
Oliver Kiddle <opk@xxxxxxxxxxxxx> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author