Red Hat Bugzilla – Bug 6020
RFE: /bin proceeds /usr/bin in root's PATH
Last modified: 2008-05-01 11:37:52 EDT
The syntax hilighting feature of vim do not appear to have
support compiled into the version distributed with Red Hat
Linux 6.1. This feature worked fine with 6.0. I am using
the command ':syntax on' to produce the error that the
command is unsupported.
Works for me here. Do you only have vim-minimal installed?
I have the following vim related packages installed:
I have reverted back to version 5.3-7 of the packages. When using
version 5.4-2, I receive the following message:
Error detected while processing /root/.vimrc:
Sorry, this command is not implemented: :syntax on
My .vimrc follows:
: set t_Co=8
: set t_Sf=p1%dm
: set t_Sb=p1%dm
: set t_Co=8
: set t_Sf=dm
: set t_Sb=dm
Hmm... most likely /bin is in root's path before /usr/bin, and
you're running /bin/vi, which is the 'minimal' version of vim.
The comment about the path is correct. The minimal version of vi in
/bin is being called before /usr/bin/vi. As the default path sets
/bin before /usr/bin for both normal and root users, /bin/vi will
always be called.
The default path in v6.0 seems to place /usr/bin before bin (although,
this is not in agreement with the documentation on 'login'). Maybe
this was a fix for the 'login' program in v6.1? Anyhow, what the
default behaviour should be I'll leave up to the experts there at Red
Hat. I'm happy enough with it either way, as long as it's working.
I've changed the component to util-linux (it includes login), but
it's not just util-linux, that's just the first place to fix this.
util-linux, gdm, xdm, and kdm are a minimal list of places that
this needs to be fixed. Note that gdm at least as a RootPath
configuration option that can be used to set this; the rest have
No matter what we change it to, someone will complain, but
/usr/sbin:/usr/bin:/sbin:/bin should work the best for the
DEFERRED until after Winston.