From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28722 invoked from network); 25 Aug 2000 16:24:53 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 25 Aug 2000 16:24:53 -0000 Received: (qmail 7871 invoked by alias); 25 Aug 2000 16:24:20 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 12701 Received: (qmail 7862 invoked from network); 25 Aug 2000 16:24:18 -0000 From: "Bart Schaefer" Message-Id: <1000825162352.ZM12107@candle.brasslantern.com> Date: Fri, 25 Aug 2000 16:23:52 +0000 In-Reply-To: <20000825153830.C22595@thelonious.new.ox.ac.uk> Comments: In reply to Adam Spiers "Re: comments break \ at end of line" (Aug 25, 3:38pm) References: <20000824222932.A15971@thelonious.new.ox.ac.uk> <0FZU00LN0FYLHV@la-la.cambridgesiliconradio.com> <20000825153830.C22595@thelonious.new.ox.ac.uk> X-Mailer: Z-Mail (5.0.0 30July97) To: Adam Spiers , Zsh hackers list Subject: Re: comments break \ at end of line MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Aug 25, 3:38pm, Adam Spiers wrote: } Subject: Re: comments break \ at end of line } } I'm suggesting that, in the case of the function, it turns it into } `echo hello, world', and in second case, it expects another line of } input, just as if you hadn't entered the comment line. After all, } comment lines are supposed to be ignored, aren't they? No, comment *lines* aren't supposed to be ignored. *Comments* are supposed to be ignored. A comment is everything from the # up to BUT NOT INCLUDING the newline. If the comment included the newline, all sorts of parsing would go wrong: if test foo # comment then Would become: if test foo then Which is certainly not what you meant. A comment beginning in the first column is treated the same as a comment beginning in any other column, which I think IS what you want; you don't want the syntax of your program changed by the introduction of leading whitespace, do you? -- 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