[TAG] LN -- have I gone brain dead?

Breen Mullins bpm at idiom.com
Fri Dec 2 20:48:17 MSK 2005


On Fri, Dec 02, 2005 at 11:55:44AM -0500, Benjamin A. Okopnik wrote:
> On Thu, Dec 01, 2005 at 02:37:02PM -0800, Breen Mullins wrote:
> 
> > Fedora Core 3 (in a fit of complete brain-death) shipped with
> > vi _unconditionally_ aliased to /usr/bin/vim.
> 
> Gaah! I've run into similar idiot's handiwork on a Solaris system -
> although, to be fair, it was the local sysadmin who perpetrated this
> one. He had set root's $SHELL to "/usr/bin/bash" - 'cause, y'know, "sh"
> is just *so* annoying (and .profile is just some stupid thing that
> nobody ever uses anyway, right?) The, one fine morning, the "/usr" slice
> failed to mount...

I've just taken another look at this -- at some point Fedora fixed the 
bug. /etc/profile.d/vim.sh now looks like this:
``
if [ -n "$BASH_VERSION" -o -n "$KSH_VERSION" -o -n "$ZSH_VERSION" ];
then
  [ -x /usr/bin/id ] || return
  [ `/usr/bin/id -u` -le 100 ] && return
  # for bash and zsh, only if no alias is already set
  alias vi >/dev/null 2>&1 || alias vi=vim
fi
''

which is much more reasonable behavior. As originally shipped the 
two tests after then were missing. 

Breen
-- 
Breen Mullins
Menlo Park, California





More information about the TAG mailing list