Red Hat Bugzilla – Bug 65766
profile.d script wipes out alias
Last modified: 2013-05-21 16:06:14 EDT
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):
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'.
Giving my script the name "zzzrunmelast.sh" works but really isn't a
solution. vim.sh should not overwrite a current alias.