Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Suppressing "no matches found" Glob Message?
- X-seq: zsh-users 7601
- From: DervishD <raul@xxxxxxxxxxxx>
- To: Aaron Davies <agd12@xxxxxxxxxxxx>
- Subject: Re: Suppressing "no matches found" Glob Message?
- Date: Sun, 27 Jun 2004 12:42:22 +0200
- Cc: zsh-users@xxxxxxxxxx
- In-reply-to: <2A3E94EA-C7E3-11D8-9C37-000502631FBD@xxxxxxxxxxxx>
- Mail-followup-to: Aaron Davies <agd12@xxxxxxxxxxxx>, zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Organization: Pleyades
- References: <2A3E94EA-C7E3-11D8-9C37-000502631FBD@xxxxxxxxxxxx>
Hi Aaron :)
* Aaron Davies <agd12@xxxxxxxxxxxx> dixit:
> Is there an easy way to temporarily turn off the "no matches found"
> message that a failed glob returns? I'm looking mainly for something
> simple enough to use in an alias--I have an alias called "lspf" which
> is defined as "ls **/*(.)", but I'd like to make it return something
> custom if no such files exist. Redirecting stderr doesn't help, because
> (I assume) the message is generated by zsh, not ls.
Yes, change your pattern to, for example 'ls **/*(.N)'. The 'N'
means 'set option NULL_GLOB' for this pattern. This removes the
error.
Raúl Núñez de Arenas Coronado
--
Linux Registered User 88736
http://www.pleyades.net & http://raul.pleyades.net/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author