From: Vincent Stemen <zsh@hightek.org>
To: zsh-users@sunsite.dk
Subject: Cannot export some shell variables
Date: Sun, 17 Apr 2005 23:51:41 -0500 [thread overview]
Message-ID: <20050418045141.GA68582@quark.hightek.org> (raw)
Hi.
Some shell variables do not seem to export to child shells. Two
variable names I know of so far are $y and $r. Is there something
special about certain variable names that could cause this behavior?
For example:
# export x=1 y=2 z=3 q=4 r=5
# env
...
SAVEHIST=500
DIRSTACKSIZE=8
x=1
y=2
z=3
q=4
r=5
# zsh
# env
...
SAVEHIST=500
DIRSTACKSIZE=8
x=1
z=3
q=4
As you can see, they are all in the environment before running a child
shell.
I unset all shell options to make sure no options were somehow causing
it (That one has gotten me several times before) but it did not make
any difference.
I tested under two different releases of zsh on two different
platforms:
zsh 4.2.1 (i386--netbsdelf)
zsh 4.2.0 (i386-unknown-freebsd5.2.1)
and got the same result. It also does the same thing if I use the
allexport option rather than exporting them individually.
I also did the same test under both sh and bash and did not have that
problem.
Any ideas?
--
Vincent Stemen
Avoid the VeriSign/Network Solutions domain registration trap!
Read how Network Solutions (NSI) was involved in stealing our domain name.
http://www.InetAddresses.net
next reply other threads:[~2005-04-18 4:52 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-18 4:51 Vincent Stemen [this message]
2005-04-18 7:33 ` DervishD
2005-04-19 3:02 ` Vincent Stemen
2005-04-19 7:53 ` DervishD
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=20050418045141.GA68582@quark.hightek.org \
--to=zsh@hightek.org \
--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).