Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
local after setopt allexport?
- X-seq: zsh-users 345
- From: Rik Faith <faith@xxxxxxxxxx>
- To: zsh-users@xxxxxxxxxxxxxxx
- Subject: local after setopt allexport?
- Date: Tue, 6 Aug 1996 15:38:48 -0400
- Cc: faith@xxxxxxxxxx
Is there a way to keep variables from being exported after setopt
allexport?
With setopt allexport:
proteus /tmp/zsh-3.0-pre6> Src/zsh
proteus% setopt allexport
proteus% typeset +x foo=bar
proteus% typeset -x bar=foo
proteus% Src/zsh
proteus% echo $foo
bar
proteus% echo $bar
foo
Without setopt allexport:
proteus /tmp/zsh-3.0-pre6> Src/zsh
proteus% typeset +x foo=bar
proteus% typeset -x bar=foo
proteus% Src/zsh
proteus% echo $foo
proteus% echo $bar
foo
(No ~/.z* startup files exist. I couldn't find this in the info pages, the
FAQ, or the mailing list archives (to May 1995). I'm new to this list, so
if there is some documentation I should have read, please let me know.
Thanks, Rik.)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author