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

Re: Help w/compctl & ksh_glob



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