zsh-users
 help / color / mirror / code / Atom feed
* ~/.zshenv or ~/.zprofile
@ 2003-08-03 22:18 Nikolai Weibull
  2003-08-03 22:39 ` Wayne Davison
                   ` (2 more replies)
  0 siblings, 3 replies; 19+ messages in thread
From: Nikolai Weibull @ 2003-08-03 22:18 UTC (permalink / raw)
  To: zsh-users

I've always put all my environment stuff in ~/.zshenv.  Lately, however,
I've come to realize that that may not be such a good idea.  I mean, the
environment is passed down as it is, why tell shells the same
information again?  The problem really is that if you put, for example,
your PATH definition in ~/.zshenv, and have a script or application that
modifies PATH and later runs a shell, that shell will not use the
specifically crafted PATH, but will read the standard one from
~/.zshenv.  An example would be procmail with ~/.procmailrc.  I have the
lines:
	PATH="/usr/bin:/bin"
	SHELL="/bin/zsh"
in my ~/.procmailrc.  I recently realized that, as I had set the shell
for procmail to invoke sub-processes with to Zsh, that the PATH setting
had no effect.  This was rather bad, as I was doing some echo debugging
in my ~/.zshenv and a lot of mails got messed up in the process.  So,
anyway, is there _any_ reason to put stuff in ~/.zshenv, and, if so,
what?
	nikolai

--
::: name: Nikolai Weibull    :: aliases: pcp / lone-star       :::
::: born: Chicago, IL USA    :: loc atm: Gothenburg, Sweden    :::
::: page: www.pcppopper.org  :: fun atm: gf,lps,ruby,php,war3  :::
main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}


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

end of thread, other threads:[~2003-09-11  6:49 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-03 22:18 ~/.zshenv or ~/.zprofile Nikolai Weibull
2003-08-03 22:39 ` Wayne Davison
2003-08-04  6:00   ` Bart Schaefer
2003-09-07 17:57     ` Wayne Davison
2003-09-07 21:24       ` DervishD
2003-09-08  3:27         ` Dan Nelson
2003-09-08  9:45           ` DervishD
2003-09-08 15:57             ` Dan Nelson
2003-09-08 22:01               ` DervishD
2003-09-08  9:47           ` Phil Pennock
2003-09-08 10:59             ` DervishD
2003-09-08 17:55             ` Wayne Davison
2003-09-08 22:48               ` Phil Pennock
2003-09-10 20:00         ` Wayne Davison
2003-09-10 19:57       ` Wayne Davison
2003-09-11  6:50         ` Oliver Kiddle
2003-08-04  2:57 ` Dan Nelson
2003-08-04 10:45   ` Nikolai Weibull
2003-08-04  9:15 ` Zefram

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