Zsh Mailing List Archive
Messages sorted by:
Re: PATCH: _urls again (Re: setopt localoptions noautoremoveslash)
- X-seq: zsh-workers 8290
- From: Oliver Kiddle <opk@xxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: PATCH: _urls again (Re: setopt localoptions noautoremoveslash)
- Date: Fri, 15 Oct 1999 16:30:17 +0100
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <199910151210.OAA18066@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sven Wischnowsky wrote:
> Do you mean to say that you still get this or that you fixed it? At
> least I don't get either of these after your patch. If you still get
> them, I need more information about your configuration and the
> possible matches that triggered it.
I mean that I still get this.
I tracked down the first problem to setopt glob_complete. i.e, the
following is sufficient to cause the problem:
autoload -U compinit;compinit -d
In the process, I established that _urls requires globcomplete; patch
With respect to the second problem, I think I was just confused by the
fact that I got a listing which looks like:
when I expected the file to appear before 'directory' so sorry for not
checking it before I sent the mail.
Tanaka Akira wrote:
> +++ Completion/User/_urls 1999/10/15 14:28:55
> @@ -1,4 +1,4 @@
> +#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.
> * 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?
--- _urls.bak3 Fri Oct 15 16:11:03 1999
+++ _urls Fri Oct 15 16:13:26 1999
@@ -37,6 +37,8 @@
# name used by a user placing web pages within their home area.
# e.g. compconf
+setopt localoptions extendedglob
local ipre scheme host user dirs files ret=1 expl
Messages sorted by: