Bug 50308 - /etc/z* contain annoying defaults
Summary: /etc/z* contain annoying defaults
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: zsh   
(Show other bugs)
Version: 7.1
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Trond Eivind Glomsrxd
QA Contact: Aaron Brown
Depends On:
TreeView+ depends on / blocked
Reported: 2001-07-30 10:13 UTC by Nadav Har'El
Modified: 2007-03-27 03:47 UTC (History)
0 users

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

Attachments (Terms of Use)

Description Nadav Har'El 2001-07-30 10:13:08 UTC
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 18:37:53 UTC
Fixed in zsh-4.0.2-2

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