From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3547 invoked from network); 2 Feb 2004 08:52:30 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 2 Feb 2004 08:52:30 -0000 Received: (qmail 7400 invoked by alias); 2 Feb 2004 08:52:12 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7037 Received: (qmail 7390 invoked from network); 2 Feb 2004 08:52:12 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 2 Feb 2004 08:52:12 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [213.97.199.90] by sunsite.dk (MessageWall 1.0.8) with SMTP; 2 Feb 2004 8:52:11 -0000 Received: (qmail 23289 invoked by uid 500); 2 Feb 2004 08:52:13 -0000 Date: Mon, 2 Feb 2004 09:52:13 +0100 From: David =?iso-8859-15?Q?G=F3mez?= To: robert.schmertz@terpalum.umd.edu Cc: Zsh-users Subject: Re: Positional parameters with more than one space Message-ID: <20040202085213.GA23279@fargo> References: <20040129225017.GA9097@fargo> <20040130002324.3439.qmail@web12405.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20040130002324.3439.qmail@web12405.mail.yahoo.com> User-Agent: Mutt/1.4.1i 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