Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Help w/compctl & ksh_glob
- X-seq: zsh-users 6470
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: Jerry A! <jerry@xxxxxxxxxxx>
- Subject: Re: Help w/compctl & ksh_glob
- Date: Sat, 16 Aug 2003 18:08:10 +0200
- Cc: zsh-users@xxxxxxxxxx
- In-reply-to: <20030816065935.GA31520@xxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20030816065935.GA31520@xxxxxxxxxxxxxxxxx>
Jerry A! wrote:
> I'm trying to setup some simple completions under zsh 4.0.6 using
> 'compctl' and 'emulate ksh'. Nothing fancy, just matching programs to
> extensions. For example:
>
> compctl -/g '*.+(b{oo,ar,az}|quu|txt)' foo
>
> This ends up not working, nothing gets expanded. I've tried replacing
Your problem is with your attempted use of a brace expansion. Brace
expansions are a different thing from filename generation. They are
just expanded instead of matched against existing files. Try this
instead:
compctl -/g '*.+(b@(oo|ar|az)|quu|txt)' foo
Oliver
Messages sorted by:
Reverse Date,
Date,
Thread,
Author