Bug 67184 - zsh not thought of in /etc/profile.d scripts
zsh not thought of in /etc/profile.d scripts
Status: CLOSED NOTABUG
Product: Red Hat Linux
Classification: Retired
Component: zsh (Show other bugs)
7.3
All Linux
medium Severity medium
: ---
: ---
Assigned To: Trond Eivind Glomsrxd
Aaron Brown
: FutureFeature
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2002-06-20 14:23 EDT by Nathan G. Grennan
Modified: 2007-04-18 12:43 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2002-06-21 12:37:34 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Nathan G. Grennan 2002-06-20 14:23:01 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 Galeon/1.2.5 (X11; Linux i686; U;) Gecko/0

Description of problem:
Most of the *.sh scripts in /etc/profile.d are bash only unnesscarily. zsh could
take advantage of the aliases that bash does for things like color ls and color vi.

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


How reproducible:
Always

Steps to Reproduce:
1. rpm -i zsh-4.0.4-5.i386.rpm
2. chsh -s zsh user
3. login as user
4. ls

	

Actual Results:  ls output isn't colorized.

Expected Results:  ls output to be colorized.

Additional info:
Comment 1 Trond Eivind Glomsrxd 2002-06-21 12:24:00 EDT
it's colorized for me, and zsh does source the .sh files in the above directory
(the zsh init files sources the bash ones)
Comment 2 Nathan G. Grennan 2002-06-21 12:29:20 EDT
At least in my copies of the files there are checks to see if it is bash.

/etc/profile.d/colorls.sh
if echo $SHELL |grep bash 2>&1 >/dev/null; then # aliases are bash only

/etc/profile.d/vim.sh
if echo $SHELL |grep bash 2>&1 >/dev/null; then # aliases are bash only



Comment 3 Nathan G. Grennan 2002-06-21 12:34:14 EDT
This is using zsh-4.0.4-5 that comes with RedHat 7.3
Comment 4 Nathan G. Grennan 2002-06-21 12:37:30 EDT
/etc/profile.d/colorls.sh is owned by fileutils-4.1-10

/etc/profile.d/vim.sh is owned by vim-enhanced-6.1-2
Comment 5 Trond Eivind Glomsrxd 2002-06-21 12:45:29 EDT
I still get them with a test account. If you find bugs with other packages wrt.
zsh, please file it against those components (as the zsh owner, you can put me
on the cc list).

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