Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Suppressing "no matches found" Glob Message?
- X-seq: zsh-users 7613
- From: DervishD <raul@xxxxxxxxxxxx>
- To: Lloyd Zusman <ljz@xxxxxxxxxx>
- Subject: Re: Suppressing "no matches found" Glob Message?
- Date: Tue, 29 Jun 2004 12:41:54 +0200
- Cc: zsh-users@xxxxxxxxxx
- In-reply-to: <m31xjyvgar.fsf@xxxxxxxxxx>
- Mail-followup-to: Lloyd Zusman <ljz@xxxxxxxxxx>, zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Organization: Pleyades
- References: <2A3E94EA-C7E3-11D8-9C37-000502631FBD@xxxxxxxxxxxx> <20040627104222.GA237@DervishD> <6D3CE77E-C88C-11D8-A1EE-000A95EDC31A@xxxxxxxxxxxxxx> <20040628085300.GA1443@DervishD> <04955BBD-C956-11D8-ADCC-000A95EDC31A@xxxxxxxxxxxxxx> <20040629085235.GC3953@DervishD> <m31xjyvgar.fsf@xxxxxxxxxx>
Hi Lloyd :)
Has been a long time since our last email :))) I'm happy to hear
from you again :)
* Lloyd Zusman <ljz@xxxxxxxxxx> dixit:
> > function special_ls() {
> >
> > emulate -L zsh
> > setopt NOMATCH
> >
> > ls **/*(.) >& /dev/null
> >
> > return 0
> > }
> That will print nothing _except_ a possible error message!
O:)) Sorry, I used >& instead of the correct 2> I was writing
this in a hurry O:)
> How about this?
>
> function special_ls() {
>
> emulate -L zsh
> setopt NOMATCH
>
> { ls **/*(.) } 2>/dev/null
>
> return 0
> }
Perfecto ;))
Best regards, Lloyd :)
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