zsh-users
 help / color / mirror / code / Atom feed
From: Peter Stephenson <pws@csr.com>
To: Chris Jepeway <jepeway@blasted-heath.com>
Cc: zsh-users@sunsite.dk
Subject: Re: ksh Emulation Not Clearing Envariables
Date: Tue, 11 May 2004 18:34:55 +0100	[thread overview]
Message-ID: <19195.1084296895@csr.com> (raw)
In-Reply-To: "Chris Jepeway"'s message of "Tue, 11 May 2004 12:59:19 EDT." <8AFD8741-A36C-11D8-B3B9-000A95B34D8E@blasted-heath.com>

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 <pws@csr.com>                  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
**********************************************************************


  reply	other threads:[~2004-05-11 17:36 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-09  0:41 Chris Jepeway
2004-05-09 21:58 ` Bart Schaefer
2004-05-10 14:52   ` Peter Stephenson
2004-05-11 17:03     ` Chris Jepeway
2004-05-11 16:59   ` Chris Jepeway
2004-05-11 17:34     ` Peter Stephenson [this message]
     [not found]       ` <040511181944.AA29985.SM@caleb.ins.cwru.edu>
2004-05-11 18:44         ` Chris Jepeway
2004-05-11 20:22           ` Bart Schaefer
     [not found]           ` <040511192759.AA02456.SM@caleb.ins.cwru.edu>
2004-05-11 20:38             ` Chris Jepeway

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=19195.1084296895@csr.com \
    --to=pws@csr.com \
    --cc=jepeway@blasted-heath.com \
    --cc=zsh-users@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).