Bug 63248 - vim alias in /etc/profile.d/vim.sh belongs in bashrc
vim alias in /etc/profile.d/vim.sh belongs in bashrc
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: vim (Show other bugs)
7.2
All Linux
medium Severity medium
: ---
: ---
Assigned To: wdovlrrw
David Lawrence
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2002-04-11 13:49 EDT by Joel Becker
Modified: 2007-04-18 12:41 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2002-04-11 13:49:51 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 Joel Becker 2002-04-11 13:49:46 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.8+) Gecko/20020228

Description of problem:
When vim-enhanced is installed, /etc/profile.d/vim.sh does a neat trick aliasing
vi to vim.  This allows users to get the right editor.  I'm fully in support of
that.

However, as this is in profile.d, it does not happen in non-login shells (eg,
xterms or screen(1) sessions).  profile is an environment thing.  bashrc is an
interactive thing.  Aliases really belong in bashrc.

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


How reproducible:
Always

Steps to Reproduce:
1.Install vim-enhanced
2.Log in and type 'alias'  Note that 'vi' is aliased to 'vim' correctly.
3.Run screen(1).  Type 'alias'.  Note that the alias list does not contain the
alias of 'vi' to 'vim' as the shell inside screen(1) is not a login shell, and
aliases do not carry to child shells.
	

Actual Results:  vi was not aliased to vim

Expected Results:  vi should be aliased to vim

Additional info:

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