From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27429 invoked from network); 14 Mar 2008 02:53:02 -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 02:53:02 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 30650 invoked from network); 14 Mar 2008 02:52:54 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 14 Mar 2008 02:52:54 -0000 Received: (qmail 17874 invoked by alias); 14 Mar 2008 02:52:51 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 24710 Received: (qmail 17860 invoked from network); 14 Mar 2008 02:52:50 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 14 Mar 2008 02:52:50 -0000 Received: from vms046pub.verizon.net (vms046pub.verizon.net [206.46.252.46]) by bifrost.dotsrc.org (Postfix) with ESMTP id 6A9A680307F7 for ; Fri, 14 Mar 2008 03:52:46 +0100 (CET) Received: from torch.brasslantern.com ([71.116.105.150]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0JXP008ZU9BWPOO5@vms046.mailsrvcs.net> for zsh-workers@sunsite.dk; Thu, 13 Mar 2008 21:52:46 -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 m2E2qhNn021932 for ; Thu, 13 Mar 2008 19:52:44 -0700 Received: (from schaefer@localhost) by torch.brasslantern.com (8.13.1/8.13.1/Submit) id m2E2qhgr021931 for zsh-workers@sunsite.dk; Thu, 13 Mar 2008 19:52:43 -0700 Date: Thu, 13 Mar 2008 19:52:41 -0700 From: Bart Schaefer Subject: Here-documents borked in "functions" output To: zsh-workers@sunsite.dk Message-id: <080313195243.ZM21930@torch.brasslantern.com> MIME-version: 1.0 X-Mailer: OpenZMail Classic (0.9.2 24April2005) Content-type: text/plain; charset=us-ascii X-Virus-Scanned: ClamAV 0.91.2/6226/Fri Mar 14 02:36:11 2008 on bifrost X-Virus-Status: Clean The zkbd function appears to show a number of interesting (new?) bugs in the shell. For example: % autoload +X zkbd % functions zkbd > zkbd.new % source zkbd.new zkbd.new:103: parse error near `\n' This looks to be because quoting has been lost from here-documents. Here's a simpler example (the blank line at the start of the here-document is important): hello() { cat < functions hello hello () { cat <<< Anything can be here Hi there $LOGNAME } Zsh correctly figures out that it can't use single quotes around the here-document content, but it doesn't replace them with anything else. Note that the function executes correctly, it just isn't regurgitated correctly with "functions". --