* setting up /etc/zshenv
@ 1997-04-05 15:34 Timothy J. Luoma
1997-04-05 18:53 ` Bart Schaefer
0 siblings, 1 reply; 2+ messages in thread
From: Timothy J. Luoma @ 1997-04-05 15:34 UTC (permalink / raw)
To: zsh-users
I am trying to setup a /etc/zshenv file for a few users on my
system running 3.0.2.
I am trying to figure out if I have to "export" all variables set
on /etc/zshenv OR whether that will be done automatically OR whether
putting "ALL_EXPORT" at the top of /etc/zshenv will be enough.
Thank you.
TjL
--
TjL <luomat@peak.org> http://www.peak.org/~luomat/next/
"Give a man a piece of working code and you solve his problem.
Teach a man to write code and you give him a
lifetime of new problems" -- me
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: setting up /etc/zshenv
1997-04-05 15:34 setting up /etc/zshenv Timothy J. Luoma
@ 1997-04-05 18:53 ` Bart Schaefer
0 siblings, 0 replies; 2+ messages in thread
From: Bart Schaefer @ 1997-04-05 18:53 UTC (permalink / raw)
To: luomat, zsh-users
On Apr 5, 10:34am, Timothy J. Luoma wrote:
} Subject: setting up /etc/zshenv
}
} I am trying to figure out if I have to "export" all variables set
} on /etc/zshenv OR whether that will be done automatically OR whether
} putting "ALL_EXPORT" at the top of /etc/zshenv will be enough.
`setopt allexport` causes all variables, including any the user sets
later, to be exported into the environment. This is probably not what
you mean to have happen.
Variables that you want to put in the environment should be explicitly
exported. Variables that you merely wish to have set in the local shell
should not. In the absence of allexport, exporting is not automatic.
You could do
setopt allexport
# here, set all the vars you want exported ...
unsetopt allexport
# here, set all those to be in the shell only ...
but you probably don't want to leave allexport set at the end.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.nbn.com/people/lantern
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1997-04-05 19:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-04-05 15:34 setting up /etc/zshenv Timothy J. Luoma
1997-04-05 18:53 ` Bart Schaefer
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).