Bug 88457 - zsh startup fails to load /etc/profile.d/*.sh
zsh startup fails to load /etc/profile.d/*.sh
Product: Red Hat Linux
Classification: Retired
Component: zsh (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jens Petersen
Mike McLean
: 92132 (view as bug list)
Depends On:
  Show dependency treegraph
Reported: 2003-04-10 03:47 EDT by Ben Liblit
Modified: 2007-04-18 12:52 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2003-04-30 21:19:01 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 Ben Liblit 2003-04-10 03:47:35 EDT
Description of problem:

Many packages put shell initialization scripts into /etc/profile.d/*.{sh,csh}. 
Under Red Hat 8.0, zsh picked up the "*.sh" scripts, just like bash.  However,
under Red Hat 9, it no longer does this.

Version-Release number of selected component (if applicable):

How reproducible:
Easily reproduced every time.

Steps to Reproduce:
1. Install a package which uses profile.d scripts.  "less" is a good example.
2. Log in as a user whose shell is bash.  echo $LESSOPEN
3. Log in as a user whose shell is zsh.  echo $LESSOPEN
Actual results:
$LESSOPEN is set under bash, but not set under zsh.  More generally, no
/etc/profile.d/*.sh shell initialization scripts were run under zsh.

Expected results:
$LESSOPEN should have been set under zsh as well.  More generally, all
/etc/profile.d/*.sh shell initialization scripts should have been run.

Additional info:
Under Red Hat 8.0, /etc/zshenv contained the following:

	# Sourcing here to get it done on all invocations of zsh,
	# like bash.
	source /etc/profile

Those lines are no longer present in the Red Hat 9 release.  Perhaps they were
removed accidentally, and simply need to be added back in.
Comment 1 Jens Petersen 2003-04-30 21:19:01 EDT
Perhaps this should have gone into the release notes...

The lines were moved into /etc/skel/.zshrc because of
bug 65509 - not ideal for old users of course, but it seemed
to be the only compromise solution.
Comment 2 Jens Petersen 2003-06-03 01:03:17 EDT
*** Bug 92132 has been marked as a duplicate of this bug. ***
Comment 3 Jens Petersen 2003-09-04 02:32:45 EDT
*** Bug 102187 has been marked as a duplicate of this bug. ***

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