Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Ex-bash script for optimisation




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