From: Peter Miller <Peter.Miller@Sun.COM>
To: zzapper <david@tvis.co.uk>
Cc: zsh-users@sunsite.dk
Subject: Re: Ex-bash script for optimisation
Date: Thu, 10 Mar 2005 13:15:50 -0500 [thread overview]
Message-ID: <42308ED6.6030007@Sun.COM> (raw)
In-Reply-To: <62u0315opl6kubat89fmdng5dg4m4370o0@4ax.com>
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
next prev parent reply other threads:[~2005-03-10 18:22 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-10 16:43 zzapper
2005-03-10 18:15 ` Peter Miller [this message]
2005-03-11 4:48 ` Bart Schaefer
2005-03-11 9:04 ` zzapper
2005-03-13 18:46 ` zzapper
2005-03-13 19:23 ` Bart Schaefer
2005-03-10 18:42 Meino Christian Cramer
2005-03-11 5:14 ` Bart Schaefer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=42308ED6.6030007@Sun.COM \
--to=peter.miller@sun.com \
--cc=david@tvis.co.uk \
--cc=zsh-users@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).