Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Bug#455070: zsh: make completion: please add support for -include



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