From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28821 invoked from network); 26 Nov 2005 21:13:16 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.0 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 26 Nov 2005 21:13:16 -0000 Received: (qmail 36795 invoked from network); 26 Nov 2005 21:13:10 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 26 Nov 2005 21:13:10 -0000 Received: (qmail 29350 invoked by alias); 26 Nov 2005 21:13:07 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 22036 Received: (qmail 29340 invoked from network); 26 Nov 2005 21:13:06 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 26 Nov 2005 21:13:06 -0000 Received: (qmail 36458 invoked from network); 26 Nov 2005 21:13:06 -0000 Received: from vms048pub.verizon.net (206.46.252.48) by a.mx.sunsite.dk with SMTP; 26 Nov 2005 21:13:05 -0000 Received: from candle.brasslantern.com ([71.116.81.225]) by vms048.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0IQK00J82YXQ05W7@vms048.mailsrvcs.net> for zsh-workers@sunsite.dk; Sat, 26 Nov 2005 15:13:04 -0600 (CST) Received: from candle.brasslantern.com (IDENT:schaefer@localhost [127.0.0.1]) by candle.brasslantern.com (8.12.11/8.12.11) with ESMTP id jAQLD1Sv001010; Sat, 26 Nov 2005 13:13:01 -0800 Received: (from schaefer@localhost) by candle.brasslantern.com (8.12.11/8.12.11/Submit) id jAQLD0Q7001009; Sat, 26 Nov 2005 13:13:01 -0800 Date: Sat, 26 Nov 2005 21:13:00 +0000 From: Bart Schaefer Subject: Re: path and += troubles In-reply-to: <200511261840.jAQIeKk0009266@pwslaptop.csr.com> To: Peter Stephenson , zsh-workers@sunsite.dk Message-id: <1051126211300.ZM1008@candle.brasslantern.com> MIME-version: 1.0 X-Mailer: Z-Mail (5.0.0 30July97) Content-type: text/plain; charset=us-ascii References: <200511261840.jAQIeKk0009266@pwslaptop.csr.com> Comments: In reply to Peter Stephenson "Re: path and += troubles" (Nov 26, 6:40pm) On Nov 26, 6:40pm, Peter Stephenson wrote: } Subject: Re: path and += troubles } } > On Nov 25, 9:32pm, Steven Klass wrote: } > } } > } $1+=($2) } > } > For some reason "setopt nullglob" (even cshnullglob) prevents the error } > message that would otherwise be produced for this line, turning it into } > a silent no-op. I think that's probably an obscure bug. } } It's a bug if you think the "=" should always indicate an assignment No, that's not it. } Otherwise, it looks like } an expression with a set of globbing qualifiers at the end Exactly ... the problem is this: schaefer<508> echo $1+=($2) zsh: no match schaefer<509> $1+=($2) schaefer<510> Where's my "no match" error in the second case? } At the moment lexical analysis is fairly restrictive about what it will } consider an assignment; if it doesn't like it, it will decide it's just } an ordinary string, so the word will be parsed as a command. That's just fine, and I don't think it should be changed.