From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20915 invoked from network); 25 Jan 2009 21:40:09 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) 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.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 25 Jan 2009 21:40:09 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 87116 invoked from network); 25 Jan 2009 21:40:03 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 25 Jan 2009 21:40:03 -0000 Received: (qmail 25256 invoked by alias); 25 Jan 2009 21:39:58 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 26436 Received: (qmail 25245 invoked from network); 25 Jan 2009 21:39:58 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 25 Jan 2009 21:39:58 -0000 Received: from mtaout02-winn.ispmail.ntl.com (mtaout02-winn.ispmail.ntl.com [81.103.221.48]) by bifrost.dotsrc.org (Postfix) with ESMTP id 8BA9680271F0 for ; Sun, 25 Jan 2009 22:39:55 +0100 (CET) Received: from aamtaout01-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout02-winn.ispmail.ntl.com (InterMail vM.7.08.04.00 201-2186-134-20080326) with ESMTP id <20090125213954.PHCC4080.mtaout02-winn.ispmail.ntl.com@aamtaout01-winn.ispmail.ntl.com> for ; Sun, 25 Jan 2009 21:39:54 +0000 Received: from pws-pc ([81.107.42.185]) by aamtaout01-winn.ispmail.ntl.com (InterMail vG.2.02.00.01 201-2161-120-102-20060912) with ESMTP id <20090125213954.QGSI19264.aamtaout01-winn.ispmail.ntl.com@pws-pc> for ; Sun, 25 Jan 2009 21:39:54 +0000 Date: Sun, 25 Jan 2009 21:39:46 +0000 From: Peter Stephenson To: zsh-workers@sunsite.dk Subject: Re: sourcing a sh file in zsh Message-ID: <20090125213946.4c868e74@pws-pc> In-Reply-To: <090124152643.ZM24163@torch.brasslantern.com> References: <200901161939.54651.arvidjaar@newmail.ru> <090116102934.ZM22119@torch.brasslantern.com> <200901241859.30029.arvidjaar@gmail.com> <20090124173836.64403fdc@pws-pc> <090124152643.ZM24163@torch.brasslantern.com> X-Mailer: Claws Mail 3.7.0 (GTK+ 2.14.5; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Cloudmark-Analysis: v=1.0 c=1 a=NLZqzBF-AAAA:8 a=Rd8VRF__Aoyg3atp7aUA:9 a=cZY8-hs04YYsQ-xtwHEA:7 a=UwE4JCV3LVdIxLBD17EK9zGoOpUA:4 a=LY0hPdMaydYA:10 X-Virus-Scanned: ClamAV 0.92.1/8901/Sun Jan 25 11:10:36 2009 on bifrost X-Virus-Status: Clean On Sat, 24 Jan 2009 15:26:43 -0800 Bart Schaefer wrote: > } There's still the issue of retaining the emulation mode for functions > } defined in that mode; I agree we really ought to tackle that to make > } the new functionality properly useful. I expect Bart has ideas on the > } next step; how far will we need to go? > > I refer you to workers/26336 where Phil makes some comments about how > he'd modify the wordcode to handle this. I can't offhand think of a case that needs to be that complicated. Either you run a chunk of code using "emulate", or you have a shell function, possibly defined in such a chunk, where sticking the flags in the shfunc structure for future reference is good enough. Where would you need something more than that? -- Peter Stephenson Web page now at http://homepage.ntlworld.com/p.w.stephenson/