zsh-users
 help / color / mirror / code / Atom feed
From: "David Gómez" <david@pleyades.net>
To: robert.schmertz@terpalum.umd.edu
Cc: Zsh-users <zsh-users@sunsite.dk>
Subject: Re: Positional parameters with more than one space
Date: Mon, 2 Feb 2004 09:52:13 +0100	[thread overview]
Message-ID: <20040202085213.GA23279@fargo> (raw)
In-Reply-To: <20040130002324.3439.qmail@web12405.mail.yahoo.com>

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


      reply	other threads:[~2004-02-02  8:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-29 22:50 David Gómez
2004-01-30  0:23 ` Bob Schmertz
2004-02-02  8:52   ` David Gómez [this message]

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=20040202085213.GA23279@fargo \
    --to=david@pleyades.net \
    --cc=robert.schmertz@terpalum.umd.edu \
    --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).