Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Help on filename generation
- X-seq: zsh-users 11604
- From: Stephane Chazelas <Stephane_Chazelas@xxxxxxxx>
- To: Peter Stephenson <pws@xxxxxxx>
- Subject: Re: Help on filename generation
- Date: Tue, 10 Jul 2007 19:22:47 +0100
- Cc: zsh-users@xxxxxxxxxx
- In-reply-to: <200707101810.l6AIAkNr025726@xxxxxxxxxxxxxx>
- Mail-followup-to: Peter Stephenson <pws@xxxxxxx>, zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <87r6nggnrv.fsf@xxxxxxxxxxxxxxxxxxxxxxxx> <200707101753.l6AHrIjL025548@xxxxxxxxxxxxxx> <200707101810.l6AIAkNr025726@xxxxxxxxxxxxxx>
On Tue, Jul 10, 2007 at 07:10:46PM +0100, Peter Stephenson wrote:
[...]
> doit() {
> for file in $1/*generic*~*\~
> do
> print $file
> done
> }
[...]
Let's also note that print expands its arguments without -r and
you need to mark the end of options:
doit() {
for file in $1/*generic*~*\~
do
print -r -- $file
done
}
--
Stéphane
Messages sorted by:
Reverse Date,
Date,
Thread,
Author