Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 67264 - /etc/profile.d/vim.sh only applies to the bash shell
/etc/profile.d/vim.sh only applies to the bash shell
Product: Red Hat Linux
Classification: Retired
Component: vim (Show other bugs)
All Linux
medium Severity low
: ---
: ---
Assigned To: wdovlrrw
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2002-06-21 13:31 EDT by Nathan G. Grennan
Modified: 2007-04-18 12:43 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2002-06-21 13:31:46 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 Nathan G. Grennan 2002-06-21 13:31:42 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 Galeon/1.2.5 (X11; Linux i686; U;) Gecko/0

Description of problem:
/etc/profile.d/vim.sh only applies to the bash shell because of the line below.
Other shells that use /etc/profile, like zsh, can use the alias defined in
vim.sh just fine, but are excluded by the if statement.

if echo $SHELL |grep bash 2>&1 >/dev/null; then # aliases are bash only

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

How reproducible:

Steps to Reproduce:
1. Install vim-enhanced and zsh
2. chsh -s zsh user
3. Login as user
4. vi filename

Actual Results:  Text isn't color coded.

Expected Results:  Text is color coded.

Additional info:

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