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

Re: Globbing question



lists wrote:
> Hi all,
> 	I'm trying to match files which aren't executable for the following 
> completion:
> 
> zstyle ':completion:*:complete:-command-::commands' ignored-patterns
> 
> I tried this:
> 
> zstyle ':completion:*:complete:-command-::commands' ignored-patterns 
> '*^((x)|(X)|(E))'
> 
> thinking that that would translate to "complete everything besides a 
> file with the user, group, or other executable bit set", but that 
> stopped completing all files which were executable.  Can anyone 
> explain?  What is a better way to do this?

The answer to both this and the next question is that unfortunately you
can't use glob qualifiers in ignored patterns.  They are handled as
generic patterns, not specifically file patterns.  This is rather a
nuisance.

It looks like it's probably quite hard to fix.

-- 
Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR Ltd., Science Park, Milton Road,
Cambridge, CB4 0WH, UK                          Tel: +44 (0)1223 692070


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************



Messages sorted by: Reverse Date, Date, Thread, Author