zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <p.stephenson@samsung.com>
To: Zsh Hackers' List <zsh-workers@zsh.org>
Subject: Re: "VAR=foo export VAR" no longer works in zsh emulation
Date: Tue, 24 Jan 2017 16:32:35 +0000	[thread overview]
Message-ID: <20170124163235.7cfbc4f6@pwslap01u.europe.root.pri> (raw)
In-Reply-To: <20170124135037.06081eb1@pwslap01u.europe.root.pri>

On Tue, 24 Jan 2017 13:50:37 +0000
Peter Stephenson <p.stephenson@samsung.com> wrote:
> VAR=foo export VAR
> 
> used to work in zsh the same way as in other Bourne-like shells.
> That syntax the Bourne equivalent of Korn's:
> 
> export VAR=foo
> 
> (without the ambiguity of whether VAR=foo should be treated as
> an assignment or a command argument).

Do you have POSIX_BUILTINS set?  It's needed to get the special
behaviour of not restoring the environment.  I don't think that
behaviour changed recently, though.

% zsh -f
% setopt posixbuiltins
% FOO=bar export FOO
% printenv FOO
bar
%

and

% ARGV0=sh zsh -f
$ FOO=bar export FOO
$ printenv FOO
bar
$

I can believe there could be other weird interactions around, however.

pws


  parent reply	other threads:[~2017-01-24 16:32 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20170124135040eucas1p11db129a17c1993a5b2d428ef9401bbf9@eucas1p1.samsung.com>
2017-01-24 13:50 ` Fw: " Peter Stephenson
     [not found]   ` <CGME20170124163239eucas1p1a2fc806430fa49f6e0c9ec83fe42b676@eucas1p1.samsung.com>
2017-01-24 16:32     ` Peter Stephenson [this message]
2017-01-24 16:34       ` Bart Schaefer
2017-01-24 16:42         ` Bart Schaefer
2017-01-24 17:52           ` Peter Stephenson
2017-01-24 22:24             ` Bart Schaefer
2017-01-24 16:44         ` Peter Stephenson

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=20170124163235.7cfbc4f6@pwslap01u.europe.root.pri \
    --to=p.stephenson@samsung.com \
    --cc=zsh-workers@zsh.org \
    /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).