Bug 63248 - vim alias in /etc/profile.d/vim.sh belongs in bashrc
Summary: vim alias in /etc/profile.d/vim.sh belongs in bashrc
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: vim
Version: 7.2
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: wdovlrrw
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-04-11 17:49 UTC by Joel Becker
Modified: 2007-04-18 16:41 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2002-04-11 17:49:51 UTC
Embargoed:


Attachments (Terms of Use)

Description Joel Becker 2002-04-11 17:49:46 UTC
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.