From: Peter Stephenson <pws@ibmth.df.unipi.it>
To: zsh-workers@math.gatech.edu
Subject: Re: PATCH: 3.1.5: eval with exported vars
Date: Fri, 11 Dec 1998 13:45:12 +0100 [thread overview]
Message-ID: <9812111245.AA42577@ibmth.df.unipi.it> (raw)
In-Reply-To: ""Andrej Borsenkow""'s message of "Fri, 11 Dec 1998 15:23:11 NFT." <001801be2501$04976be0$21c9ca95@mowp.siemens.ru>
"Andrej Borsenkow" wrote:
> But as I understand, your patch blindly exports variable for every builtin?
No, just eval, which is a peculiar case because you really don't know
what it's going to do. The workaround I gave (assignment after the
eval) is really the best way of doing it. You can certainly argue
it's not right to have eval as a special case, but I'd say exporting
it rather than just setting it is the safest here.
> bor@itsrm2:/tools/var%> FOO=x eval sh -c '"echo $FOO"'
> x
> bor@itsrm2:/tools/var%> echo $FOO
>
> Still wrong - FOO disappears.
This is supposed to depend on the setting of POSIXBUILTINS. It does
seem to work for me. It's annoying there's yet another option, but I
think it's mainly for setting for for ksh emulation rather than `real'
zsh users.
Possibly the patch I sent should have a !isset(POSIXBUILTINS) wrapper?
--
Peter Stephenson <pws@ibmth.df.unipi.it> Tel: +39 050 844536
WWW: http://www.ifh.de/~pws/
Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy
next prev parent reply other threads:[~1998-12-11 13:06 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <19981211080558.46630@athenaeum.demon.co.uk>
1998-12-11 9:52 ` Peter Stephenson
1998-12-11 12:23 ` Andrej Borsenkow
1998-12-11 12:45 ` Peter Stephenson [this message]
1998-12-11 13:27 ` Andrej Borsenkow
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=9812111245.AA42577@ibmth.df.unipi.it \
--to=pws@ibmth.df.unipi.it \
--cc=zsh-workers@math.gatech.edu \
/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).