From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26420 invoked from network); 14 Mar 2008 14:50:37 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.4 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 14 Mar 2008 14:50:37 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 99883 invoked from network); 14 Mar 2008 14:50:33 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 14 Mar 2008 14:50:33 -0000 Received: (qmail 13780 invoked by alias); 14 Mar 2008 14:50:30 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 24713 Received: (qmail 13764 invoked from network); 14 Mar 2008 14:50:29 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 14 Mar 2008 14:50:29 -0000 Received: from vms040pub.verizon.net (vms040pub.verizon.net [206.46.252.40]) by bifrost.dotsrc.org (Postfix) with ESMTP id BD08380307F7 for ; Fri, 14 Mar 2008 15:50:25 +0100 (CET) Received: from torch.brasslantern.com ([71.116.105.150]) by vms040.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0JXQ00G2S6MIZRG7@vms040.mailsrvcs.net> for zsh-workers@sunsite.dk; Fri, 14 Mar 2008 09:51:55 -0500 (CDT) Received: from torch.brasslantern.com (localhost.localdomain [127.0.0.1]) by torch.brasslantern.com (8.13.1/8.13.1) with ESMTP id m2EEmoGB022705 for ; Fri, 14 Mar 2008 07:48:50 -0700 Received: (from schaefer@localhost) by torch.brasslantern.com (8.13.1/8.13.1/Submit) id m2EEmnWH022704 for zsh-workers@sunsite.dk; Fri, 14 Mar 2008 07:48:49 -0700 Date: Fri, 14 Mar 2008 07:48:49 -0700 From: Bart Schaefer Subject: Re: Here-documents borked in "functions" output In-reply-to: <20080314113641.10398594@news01> To: zsh-workers@sunsite.dk Message-id: <080314074849.ZM22703@torch.brasslantern.com> MIME-version: 1.0 X-Mailer: OpenZMail Classic (0.9.2 24April2005) Content-type: text/plain; charset=us-ascii References: <080313195243.ZM21930@torch.brasslantern.com> <20080314113641.10398594@news01> Comments: In reply to Peter Stephenson "Re: Here-documents borked in "functions" output" (Mar 14, 11:36am) X-Virus-Scanned: ClamAV 0.91.2/6230/Fri Mar 14 15:23:10 2008 on bifrost X-Virus-Status: Clean On Mar 14, 11:36am, Peter Stephenson wrote: } } There has always been a bit of a hack here, so it's not surprising } things go a little wonky. We turn HERE-documents into HERE-strings } immediately; the code in text.c that re-presents them doesn't } currently know whether the code came from a HERE-document, in which } case it needs extra quoting, for which it simply guesses. The sensible } fix is to tell it. This is great, but in case you have some extra time just lying around waiting to be filled, it might be nicer to store the begin/end marker string so that it could be re-presented as a here-document again. Of course, if you give me that cookie I'm going to want leading tabs with my milk, so maybe it's better if I quietly let it pass.