zsh-users
 help / color / mirror / code / Atom feed
* Where PATH is set
@ 2006-09-05 18:31 Chris Johnson
  2006-09-05 21:08 ` William Scott
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Chris Johnson @ 2006-09-05 18:31 UTC (permalink / raw)
  To: zsh-users

I have a political question I could use some help on.  My system
administrators currently set PATH in /etc/zshrc.  The assignment is
literal; no existing value is checked for.  They assign the exact same
thing to PATH in /etc/zshenv so that "ssh machine command" will work the
same way.

This setup forces me to similarly assign PATH twice, once in ~/.zshenv
and once in ~/.zshrc.  My changes to PATH in ~/.zshenv are overwritten
by the system's /etc/zshrc.  But I want PATH to contain the same
directories whether the shell is interactive or not.  So, I need to
assign to PATH again in ~/.zshrc.  I think this is a horrible setup, a
trap for inconsistencies just waiting to snare users, but the sysadmins
think its a non-issue.

Peter has some lines in the zsh Guide, section 2.5.10, about how zshenv
is the cleanest place to set environment variables, PATH included.  I've
pointed this out to my sysadmins, but they are looking for further
documentation and recommendation of this practice.  Does anyone have any
input that I could send their way?

I suppose you could disagree with me if you wanted to, but I won't
forward that along to them.

-- 
Chris Johnson
cjohnson@cs.utk.edu
http://www.cs.utk.edu/~cjohnson


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

end of thread, other threads:[~2006-09-06  6:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-05 18:31 Where PATH is set Chris Johnson
2006-09-05 21:08 ` William Scott
2006-09-06  4:01 ` Bart Schaefer
2006-09-06  6:16 ` Wayne Davison

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