zsh-users
 help / color / mirror / code / Atom feed
* Cannot export some shell variables
@ 2005-04-18  4:51 Vincent Stemen
  2005-04-18  7:33 ` DervishD
  0 siblings, 1 reply; 4+ messages in thread
From: Vincent Stemen @ 2005-04-18  4:51 UTC (permalink / raw)
  To: zsh-users

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-04-19  7:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-18  4:51 Cannot export some shell variables Vincent Stemen
2005-04-18  7:33 ` DervishD
2005-04-19  3:02   ` Vincent Stemen
2005-04-19  7:53     ` DervishD

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).