From: Peter Stephenson <pws@ifh.de>
To: zsh-workers@math.gatech.edu (Zsh hackers list)
Subject: Re: local after setopt allexport?
Date: Fri, 09 Aug 1996 10:49:15 +0200 [thread overview]
Message-ID: <199608090849.KAA02827@hydra.ifh.de> (raw)
In-Reply-To: "schaefer@candle.brasslantern.com"'s message of "Thu, 08 Aug 1996 22:44:52 MET." <960808224452.ZM21431@candle.brasslantern.com>
schaefer@candle.brasslantern.com wrote:
> I confess to be curious why:
>
> setopt allexport
> typeset +x FOO=bar
>
> results in FOO being exported, whereas
>
> setopt allexport
> FOO=bar
> typeset +x FOO
>
> results in FOO being local. Does ksh really ignore the `+x' in the
> first example? (I should get pdksh so I can stop asking this stuff,
> but then again, most of the time I don't *want* pdksh.)
It looks like ksh makes FOO local in both cases --- in fact, even
without the +x in the first case. This is just one of many
inconsistencies with typeset which needs a much clearer logic.
Another is that typeset with an existing sufficiently local variable
reports the value, which is confusing in functions. If I had a list
of all the things it should and shouldn't do I might attempt to
rewrite it one day.
--
Peter Stephenson <pws@ifh.de> Tel: +49 33762 77366
WWW: http://www.ifh.de/~pws/ Fax: +49 33762 77330
Deutches Electronen-Synchrotron --- Institut fuer Hochenergiephysik Zeuthen
DESY-IfH, 15735 Zeuthen, Germany.
next parent reply other threads:[~1996-08-09 8:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <960808224452.ZM21431@candle.brasslantern.com>
1996-08-09 8:49 ` Peter Stephenson [this message]
[not found] <960809094225.ZM23675@candle.brasslantern.com>
1996-08-12 8:03 ` 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=199608090849.KAA02827@hydra.ifh.de \
--to=pws@ifh.de \
--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).