Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 65766 - profile.d script wipes out alias
Summary: profile.d script wipes out alias
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: vim
Version: 7.3
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: wdovlrrw
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks: 65252 965830
TreeView+ depends on / blocked
 
Reported: 2002-05-31 15:37 UTC by Michael McLagan
Modified: 2013-05-21 20:06 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2002-06-27 07:52:49 UTC
Embargoed:


Attachments (Terms of Use)

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.


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