From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21727 invoked from network); 30 Jun 2004 19:24:23 -0000 Received: from odin.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.85) by ns1.primenet.com.au with SMTP; 30 Jun 2004 19:24:23 -0000 Received: (qmail 24224 invoked from network); 30 Jun 2004 20:34:46 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 30 Jun 2004 20:34:46 -0000 Received: (qmail 7845 invoked by alias); 30 Jun 2004 19:22:54 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7639 Received: (qmail 7823 invoked from network); 30 Jun 2004 19:22:53 -0000 Received: from odin.dotsrc.org (HELO a.mx.sunsite.dk) (qmailr@130.225.247.85) by sunsite.dk with SMTP; 30 Jun 2004 19:22:53 -0000 Received: (qmail 22951 invoked from network); 30 Jun 2004 20:34:20 -0000 Received: from madrid10.amenworld.com (62.193.203.32) by a.mx.sunsite.dk with SMTP; 30 Jun 2004 20:34:13 -0000 Received: from DervishD.pleyades.net (212.Red-80-35-44.pooles.rima-tde.net [80.35.44.212]) by madrid10.amenworld.com (8.10.2/8.10.2) with ESMTP id i5UJMie20186 for ; Wed, 30 Jun 2004 21:22:44 +0200 Received: from raul@pleyades.net by DervishD.pleyades.net with local (Exim MTA 2.05) id <1Bfkee-00008I-00>; Wed, 30 Jun 2004 21:22:00 +0200 Date: Wed, 30 Jun 2004 21:22:00 +0200 From: DervishD To: Zsh Users Subject: Re: Don't understand why 'EQUALS' option works this way Message-ID: <20040630192200.GB489@DervishD> Mail-Followup-To: Zsh Users References: <20040630101813.GA4498@DervishD> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.4.2.1i Organization: Pleyades X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, hits=0.0 required=6.0 tests=none autolearn=no version=2.63 X-Spam-Hits: 0.0 Hi Bart :) * Bart Schaefer dixit: > > Why 'print a=1' prints 'a=1' but 'print a==1' prints '1: not > > found'? > > All this happens, of course, only when EQUALS is 'on'. > I think you'll find that this also happens only when MAGIC_EQUAL_SUBST > is on. I still don't understand. The first form, if MAGIC_EQUAL_SUBST is on, is eligible for filename expansion (the filename is '1'), but in the second form the filename would be '=1', that's all the difference. Oh, I see, the '1' could be a filename, and if it cannot be expanded, nothing occurs, but the second form expands differently, since it is the '=filename' construction. BTW, if EQUALS is off and MAGIC_EQUAL_SUBST is on, this doesn't happen, because the =filename construct is never tried, I wasn't aware of this. Thanks for your help :) Raúl Núñez de Arenas Coronado -- Linux Registered User 88736 http://www.pleyades.net & http://raul.pleyades.net/