Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Ex-bash script for optimisation
- X-seq: zsh-users 8576
- From: Peter Miller <Peter.Miller@xxxxxxx>
- To: zzapper <david@xxxxxxxxxx>
- Subject: Re: Ex-bash script for optimisation
- Date: Thu, 10 Mar 2005 13:15:50 -0500
- Cc: zsh-users@xxxxxxxxxx
- In-reply-to: <62u0315opl6kubat89fmdng5dg4m4370o0@xxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Organization: Sun Microsystems
- References: <62u0315opl6kubat89fmdng5dg4m4370o0@xxxxxxx>
- Reply-to: Peter.Miller@xxxxxxx
zzapper wrote:
> Hi
> Q1) Is there a better way to generate the array filelst
> Q2) the line "for x in *$1*" fails is no match, how can i "catch" this
I use "for x in *$1*(N)" to get null glob semantics (remove pattern with no
matches).
I don't know if it is better, but you can use something like
filelst[$(($#filelst+1))]=$x
Messages sorted by:
Reverse Date,
Date,
Thread,
Author