From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11887 invoked from network); 24 Jul 2001 02:47:49 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 24 Jul 2001 02:47:49 -0000 Received: (qmail 11880 invoked by alias); 24 Jul 2001 02:47:42 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 15466 Received: (qmail 11869 invoked from network); 24 Jul 2001 02:47:41 -0000 From: "Bart Schaefer" Message-Id: <1010724024529.ZM14507@candle.brasslantern.com> Date: Tue, 24 Jul 2001 02:45:29 +0000 In-Reply-To: <010723181213.ZM14442@candle.brasslantern.com> Comments: In reply to "Bart Schaefer" "Re: Enable/disable (was Re: Enhanced shell)" (Jul 23, 6:12pm) References: <20010722224707.BD7621428E@pwstephenson.fsnet.co.uk> <3B5C06E6.FFFCCFCC@u.genie.co.uk> <20010723150019.A25511@leeor.math.technion.ac.il> <1010723163850.ZM14004@candle.brasslantern.com> <20010724010052.A12156@leeor.math.technion.ac.il> <010723181213.ZM14442@candle.brasslantern.com> X-Mailer: Z-Mail (5.0.0 30July97) To: Zsh hackers list Subject: Here-strings and $functions MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Jul 23, 6:12pm, Bart Schaefer wrote: } } function neither_alias_nor_function() { } local +h aliases functions } disable -a ${(k)aliases} } disable -f ${(k)functions} } "$@" } } This function revealed a problem with here-strings in the $functions parameter: schaefer[505] foo() { function> <<<'This is a here-string' function> } schaefer[506] foo This is a here-string schaefer[507] functions[foo]=$functions[foo] schaefer[508] foo foo:1: command not found: is schaefer[509] functions foo foo () { is a here-string'' <<< '''This' } Uhh, yeah. -- 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