Bug 50308 - /etc/z* contain annoying defaults
/etc/z* contain annoying defaults
Product: Red Hat Linux
Classification: Retired
Component: zsh (Show other bugs)
All Linux
low Severity medium
: ---
: ---
Assigned To: Trond Eivind Glomsrxd
Aaron Brown
Depends On:
  Show dependency treegraph
Reported: 2001-07-30 06:13 EDT by Nadav Har'El
Modified: 2007-03-26 23:47 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-07-30 06:13:12 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Nadav Har'El 2001-07-30 06:13:08 EDT
Redhat's default /etc/zlogin, /etc/zshrc, etc., contain very annoying
defaults. For example, they change the PATH in a way that overides the
user's setting in ~/.zprofile.

It's not the content of /etc/z* that's annoying (well, it is, but it's not
the main point): The problem is that it overrides the user's settings in
One of the problems is that /etc/zshrc is read *after* the user's
~/.zprofile! This is a zsh fact (see the manual), so a distribution should
be very conservative in what it puts in /etc/zshrc. In my opinion, Redhat
should not have a /etc/zshrc at all. But even if you do, you should set
variables in there, otherwise users cannot overide them in their
~/.zprofile (the standard Unix tradition is to put variables in .zprofile,
not .zshrc, because variables are inherited in the environment - there's no
reason to reread them in every interactive shell - just in the login shell).
But there's another problem: if a user set variables in the environment,
the stuff in /etc/zshenv *also* overides them on every shell (because
/etc/zshenv is read in every shell, but ~/.zprofile is not). Now that's
really annoying.

Currently in every clean redhat install I realise after a few minutes that
my path is all wrong, because stuff in /etc/zshrc and /etc/zshenv messed it
up (and it overrided the one set in ~/.zprofile), so I just go and do 'rm
Comment 1 Trond Eivind Glomsrxd 2001-07-30 14:37:53 EDT
Fixed in zsh-4.0.2-2

Note You need to log in before you can comment on or make changes to this bug.