Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Globbing question
- X-seq: zsh-users 8001
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Globbing question
- Date: Thu, 16 Sep 2004 15:30:29 +0100
- In-reply-to: <BD59728F-078D-11D9-8D39-000A95D2C79E@xxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <BD59728F-078D-11D9-8D39-000A95D2C79E@xxxxxxxxxxxxxxxx>
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