Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Positional parameters with more than one space
- X-seq: zsh-users 7037
- From: David Gómez <david@xxxxxxxxxxxx>
- To: robert.schmertz@xxxxxxxxxxxxxxxx
- Subject: Re: Positional parameters with more than one space
- Date: Mon, 2 Feb 2004 09:52:13 +0100
- Cc: Zsh-users <zsh-users@xxxxxxxxxx>
- In-reply-to: <20040130002324.3439.qmail@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20040129225017.GA9097@fargo> <20040130002324.3439.qmail@xxxxxxxxxxxxxxxxxxxxxxx>
Hi Bob ;),
> You haven't given us enough info about where the parameters are coming
> from (i.e., how you're calling your script) or what you're doing with
> them inside the loop.
I'm calling the script using shell globbing to select the set of files. But
you solved my problem with your sample script ;). The problem was that
i wasn't quoting the variable, and thus the spaces were 'compressed'. I
was using the expression: 'command $FILES' when i should be using 'command
"$FILES"'. I didn't know about that zsh behavior with spaces.
Thanks a lot for you help ;)
--
David Gómez
"The question of whether computers can think is just like the question of
whether submarines can swim." -- Edsger W. Dijkstra
Messages sorted by:
Reverse Date,
Date,
Thread,
Author