Bug 65766

Summary: profile.d script wipes out alias
Product: [Retired] Red Hat Linux Reporter: Michael McLagan <mmclagan>
Component: vimAssignee: wdovlrrw <brosenkr>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.3   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-06-27 07:52:49 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 65252, 965830    

Description Michael McLagan 2002-05-31 15:37:27 UTC
Description of Problem:
the /etc/profile.d/vim.sh script will overwrite another alias in the 
environment if there is one.  Scripts are executed in alpha order (not a 
choice, not a good result but there's no reasonable means of declaring an
order) which means that alias.sh (a script I have which creates an alias 
for 'vi') and the vim.sh script unconditionally sets a new VI alias, 
regardless of whether or not there is one already

Version-Release number of selected component (if applicable):
vi-enhanced-6.1-2

How Reproducible:
always

Steps to Reproduce:
1. create script /etc/profile.d/alias.sh with "alias vi='gvim'"
2. login with /bin/bash as shell
3. execute 'alias'.  

Actual Results:
alias vi='vim'

Expected Results:
alias vi='gvim'

Additional Information:
Giving my script the name "zzzrunmelast.sh" works but really isn't a 
solution.  vim.sh should not overwrite a current alias.