Zsh Mailing List Archive
Messages sorted by:
Re: compsys issues
- X-seq: zsh-users 8137
- From: DervishD <zsh@xxxxxxxxxxxx>
- To: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- Subject: Re: compsys issues
- Date: Wed, 27 Oct 2004 18:07:10 +0200
- Cc: Zsh Users <zsh-users@xxxxxxxxxx>
- In-reply-to: <16515.1098891831@xxxxxxxxxxxxxxxxxxxxx>
- Mail-followup-to: Oliver Kiddle <okiddle@xxxxxxxxxxx>, Zsh Users <zsh-users@xxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Organization: DervishD
- References: <20041027132610.GA9928@DervishD> <15603.1098886106@xxxxxxxxxxxxxxxxxxxxx> <20041027145444.GB10003@DervishD> <16515.1098891831@xxxxxxxxxxxxxxxxxxxxx>
Hi Oliver :)
* Oliver Kiddle <okiddle@xxxxxxxxxxx> dixit:
> > OK, but that doesn't solve the problem I explained below. And I
> > assumed that I must use $PREFIX :? I don't understand why I must
> > remove the last path element from PREFIX :?
> Sorry, I probably only confused things by mentioning that point. It only
> really matters if you use matching control. For example, if you want
> case-insensitive matching. If $PREFIX contains `mo', mo* would not match
> a file named More while just adding * as matches allows the completion
> matching control to decide for itself which files match.
OK, now I understand. If I use $PREFIX and '-M', that won't work,
am I right? If I use $PREFIX I should use too :t or something similar
so it affects the globbing pattern but not the matching mechanism of
> > That works perfectly, thanks a lot :) The only part I didn't
> > understand was the -W flag. I mean, the manual says this flag adds the
> > string to the WORDS, and I though that the process was:
> -W only controls the way the -f option works. The string is added to the
> WORDS purely for the purpose of finding out whether the match refers to
> a regular file, a directory or whatever. -W has no effect on what the
> list of matches will be. Try removing the -W and -f options from compadd
> and use `-S /' instead if you want.
Nice :)) I want coloring in the matching list, so I'll keep -f.
> > But if I understand correctly, the string that follows '-W' is
> > added *before* compadd does the matching, am I wrong?
> Whether it is before or after makes no difference. The string following
> -W has nothing to do with matching.
Now I understand, right. I was confused by the manual and deduced
that -W affected the matching.
Thanks a lot for your kind and useful explanation :)
Raúl Núñez de Arenas Coronado
Linux Registered User 88736
http://www.dervishd.net & http://www.pleyades.net/
Messages sorted by: