From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26452 invoked from network); 14 Jan 2003 16:06:25 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 14 Jan 2003 16:06:25 -0000 Received: (qmail 21117 invoked by alias); 14 Jan 2003 16:06:19 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 18108 Received: (qmail 21107 invoked from network); 14 Jan 2003 16:06:19 -0000 Date: Tue, 14 Jan 2003 17:04:34 +0100 From: DervishD To: Zsh Subject: Why this doesn't work in zsh? Message-ID: <20030114160434.GB1630@DervishD> Mail-Followup-To: Zsh Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.4i Organization: Pleyades User-Agent: Mutt/1.4i Hi all :)) I have part of a script that says something like: for parameter do ... option=${parameter%=*} ... done This assign the part before '=' to variable 'option', no more, no less, and uses parameter expansion. It has to work with both bash and zsh, but zsh says, when the assignment is done, '* not found'. The problem is the equalsign on the parameter expansion, now I know, but, why? How can I fix this without making the script incompatible with bash? What am I doing wrong? Thanks a lot :) Raśl