Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Suppressing "no matches found" Glob Message?
- X-seq: zsh-users 7600
- From: Aaron Davies <agd12@xxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Suppressing "no matches found" Glob Message?
- Date: Sat, 26 Jun 2004 22:39:08 -0400
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
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.
--
__ __
/ ) / )
/--/ __. .__ ______ / / __. , __o _ _
/ (_(_/|_/ (_(_) / (_ (__/_(_/|_\/ <__</_/_)_
Messages sorted by:
Reverse Date,
Date,
Thread,
Author