From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20867 invoked from network); 17 Jun 2000 19:32:19 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 17 Jun 2000 19:32:19 -0000 Received: (qmail 14116 invoked by alias); 17 Jun 2000 19:32:07 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 11960 Received: (qmail 14063 invoked from network); 17 Jun 2000 19:32:06 -0000 From: "Bart Schaefer" Message-Id: <1000617193154.ZM12252@candle.brasslantern.com> Date: Sat, 17 Jun 2000 19:31:54 +0000 In-Reply-To: Comments: In reply to Tanaka Akira "PATCH: make _urls magicequalsubst aware" (Jun 18, 3:34am) References: X-Mailer: Z-Mail (5.0.0 30July97) To: Tanaka Akira , zsh-workers@sunsite.auc.dk Subject: Re: PATCH: make _urls magicequalsubst aware MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Jun 18, 3:34am, Tanaka Akira wrote: } Subject: PATCH: make _urls magicequalsubst aware } } Hm. `g:=glob' should be quoted. That's indirectly my fault. I wondered aloud why it was quoted, and so the next patch unquoted it. However, that's surely a bug in magicequalsubst handling: MAGIC_EQUAL_SUBST All unquoted arguments of the form `ANYTHING=EXPRESSION' appearing after the command name have filename expansion (that is, where EXPRESSION has a leading `~' or `=') performed on EXPRESSION as if it were a parameter assignment. The argument is not otherwise treated specially; it is passed to the command as a single argument, and not used as an actual parameter assignment. For example, in echo foo=~/bar:~/rod, both occurrences of ~ would be replaced. Note that this happens anyway with typeset and similar statements. g:=glob should have ANYTHING of `g:' and EXPRESSION of `glob'. There's no expansion to be peformed on `glob'. How is the `=' getting taken to be part of the EXPRESSION? -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net