From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27233 invoked from network); 14 Jan 2003 17:39:48 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 14 Jan 2003 17:39:48 -0000 Received: (qmail 1947 invoked by alias); 14 Jan 2003 17:39:38 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 18113 Received: (qmail 1940 invoked from network); 14 Jan 2003 17:39:37 -0000 To: Zsh Subject: Re: Why this doesn't work in zsh? In-reply-to: "DervishD"'s message of "Tue, 14 Jan 2003 17:04:34 +0100." <20030114160434.GB1630@DervishD> Date: Tue, 14 Jan 2003 17:39:09 +0000 Message-ID: <25.1042565949@csr.com> From: Peter Stephenson DervishD wrote: > for parameter > do > ... > option=${parameter%=*} > ... > done > > It has to work with both bash and zsh, but zsh says, when the > assignment is done, '* not found'. You can stick a backslash before the =; that works in bash, too, since you can quote any character, even if it's not special. The problem is that it's using path expansion `=prog', but I couldn't tell you why it should at that point; in fact, I suspect it shouldn't. Hence `setopt noequals' or `setopt nonomatch' would remove the problem, if you can live with the side effects. -- Peter Stephenson Software Engineer CSR Ltd., Science Park, Milton Road, Cambridge, CB4 0WH, UK Tel: +44 (0)1223 692070 ********************************************************************** The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. **********************************************************************