Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug#455070: zsh: make completion: please add support for -include
- X-seq: zsh-workers 24191
- From: Vincent Lefevre <vincent@xxxxxxxxxx>
- To: 455070@xxxxxxxxxxxxxxx, zsh-workers@xxxxxxxxxx
- Subject: Re: Bug#455070: zsh: make completion: please add support for -include
- Date: Sun, 9 Dec 2007 02:26:58 +0100
- In-reply-to: <20071209011247.GB132@xxxxxxxxxxxxxxxxxxx>
- Mail-followup-to: 455070@xxxxxxxxxxxxxxx, zsh-workers@xxxxxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20071208195817.GA26694@xxxxxxxxxxxxxxxxxxx> <20071208210725.GA25946@xxxxxxxxxxx> <20071209011247.GB132@xxxxxxxxxxxxxxxxxxx>
On 2007-12-09 02:12:47 +0100, Vincent Lefevre wrote:
> On 2007-12-08 16:07:25 -0500, Clint Adams wrote:
> > Could you give this completely-untested patch a try?
>
> It doesn't work. "include" is even no longer matched.
If I understand the zshexpn(1) man page[*] correctly (but it is not
clear about how the parameter expansion is done in the pattern field),
I think this is a bug:
prunille:~> incl="(-|)include"
prunille:~> echo ${input##(-|)include ##}
foo
prunille:~> echo ${input##$incl ##}
include foo
[*]
In the expansions discussed below that require a pattern, the form of
the pattern is the same as that used for filename generation; see the
section `Filename Generation'. Note that these patterns, along with
the replacement text of any substitutions, are themselves subject to
parameter expansion, command substitution, and arithmetic expansion.
--
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author