On Tue, Jan 30, 2001 at 04:31:35PM +0000, [EMAIL PROTECTED] wrote:
>
>
> There still seems to be a problem with vi despite the latest packages
> attempts to fix it. On my system the following happened:
>
> vi was created as a link to /etc/alternatives/vi
This is expected.
> /etc/alternatives/vi was also a link, but to /usr/bin/vim
>
This is really strange. It should link to /usr/bin/vim-enhanced.
And the script in %post enhanced does link to /usr/bin/vim-enhanced.
>
> Unfortunately /usr/bin/vim no longer seems to exist on my system, I only
> have /usr/bin/vim-enhanced (I do have all of the various vim packages
> installed.)
>
> I can see two problems with this:
>
> Firstly obviously the lack of a file called /usr/bin/vim leaves a broken
> link which means that vi will still not start.
>
/usr/bin/vim is now called /usr/bin/vim-enhanced.
>
> Secondly I believe /bin/vi should be linked to /bin/vim-minimal (This will
> mean that vi can still be run in event of the /usr filesystem not being
> mountable at boot).
I disagree. I usually use 'vi file.c' and expect vim-enhanced to be
launched. Even if /usr isn't mounted, you can still edit a file with
/bin/vim-minimal
> Also there should be a link setup for /usr/bin/vi to link to
> /usr/bin/vim-enhanced, in this way once the system is fully up and
> running vim-enhanced will be called upon running vi as /usr/sbin
> should preceed /bin in the users path.
>
??? There's nothing in /usr/sbin, and vi doesn't belong to /usr/sbin.
Beside /bin is before /usr/bin, so if I do what you've asked for, people
with both vim (minimal and enhanced) would be angry because vim-minimal
would be launched when they invoke 'vi'.
>
> Finally I would have thought that /etc/alternatives/vi and
> /etc/alternatives/vim can be completely dropped as I cannot see any reason
> for this double linking (There may of course be something I am missing).
>
man update-alternatives.
The previous way (without alternatives) was good for vim. But one couldn't
install different flavour of vi.
DindinX
--
[EMAIL PROTECTED]