From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25918 invoked from network); 11 May 2004 17:36:49 -0000 Received: from thor.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.86) by ns1.primenet.com.au with SMTP; 11 May 2004 17:36:49 -0000 Received: (qmail 21273 invoked from network); 11 May 2004 17:35:37 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 11 May 2004 17:35:37 -0000 Received: (qmail 6692 invoked by alias); 11 May 2004 17:35:28 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7444 Received: (qmail 6683 invoked from network); 11 May 2004 17:35:28 -0000 Received: from thor.dotsrc.org (HELO a.mx.sunsite.dk) (qmailr@130.225.247.86) by sunsite.dk with SMTP; 11 May 2004 17:35:25 -0000 Received: (qmail 20593 invoked from network); 11 May 2004 17:35:25 -0000 Received: from lhuumrelay3.lnd.ops.eu.uu.net (62.189.58.19) by a.mx.sunsite.dk with SMTP; 11 May 2004 17:35:23 -0000 Received: from MAILSWEEPER01.csr.com (mailhost1.csr.com [62.189.183.235]) by lhuumrelay3.lnd.ops.eu.uu.net (8.11.0/8.11.0) with ESMTP id i4BHYvv00185 for ; Tue, 11 May 2004 17:34:57 GMT Received: from EXCHANGE02.csr.com (unverified [192.168.137.45]) by MAILSWEEPER01.csr.com (Content Technologies SMTPRS 4.3.12) with ESMTP id ; Tue, 11 May 2004 18:34:26 +0100 Received: from csr.com ([192.168.144.127]) by EXCHANGE02.csr.com with Microsoft SMTPSVC(5.0.2195.6713); Tue, 11 May 2004 18:36:32 +0100 To: Chris Jepeway cc: zsh-users@sunsite.dk Subject: Re: ksh Emulation Not Clearing Envariables In-reply-to: "Chris Jepeway"'s message of "Tue, 11 May 2004 12:59:19 EDT." <8AFD8741-A36C-11D8-B3B9-000A95B34D8E@blasted-heath.com> Date: Tue, 11 May 2004 18:34:55 +0100 Message-ID: <19195.1084296895@csr.com> From: Peter Stephenson X-OriginalArrivalTime: 11 May 2004 17:36:32.0338 (UTC) FILETIME=[7FD66320:01C4377E] X-Spam-Flag: YES X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: ****** X-Spam-Status: Yes, hits=6.0 required=6.0 tests=BAYES_99 autolearn=no version=2.63 X-Spam-Hits: 6.0 X-Spam-Report: * 6.0 BAYES_99 BODY: Bayesian spam probability is 99 to 100% * [score: 0.9948] Chris Jepeway wrote: > POSIX wants the envariable to persist across invocations > of the function "e"? That seems...counter-intuitive. > I thought the whole point of > > VAR=val cmd > > was as a shortcut to > > export VAR=val ; cmd ; unset VAR > > nevermind dovetailing with execve()'s env pointer. > > Sure, in this case, cmd is a shell function, but...well...so what? > Eeesh. POSIX. > > But, anyways, the command is "emulate ksh" not "emulate posix". > Any chance this behavior could change to follow ksh? ksh88 as > distributed w/ Solaris-8 is what I'm using for comparison. I can't find it in POSIX now, but it's controlled by the option posix_builtins. We could turn that off for ksh, but I'd like to know if we really ever need to have it on by default. -- Peter Stephenson Software Engineer CSR Ltd., Science Park, Milton Road, Cambridge, CB4 0WH, UK Tel: +44 (0)1223 692070 ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com **********************************************************************