[suggest] Re: nvi 1.79

Christoph Maser cmr at financial.com
Thu Jan 10 08:53:05 CET 2008


Mikel

it seems i did not properly describe my point. I think under no
circumstances we should advise the user to touch "/bin/vi" after all it
is a file from a package, and you might end up with a broken vi as root
in some scenarios (rescue mode, broken libs, /usr not mounted)

Chris


Am Donnerstag, den 10.01.2008, 08:42 +0100 schrieb Mikel Ward:
> Hi Christoph
>
> The RPM just sets up the proper symlinks in /etc/alternatives in case
> the user decides to use alternatives.  It doesn't touch /bin/vi.
>
> For that to happen, you'd need to run something like:
> # mv /bin/vi /bin/vim
> # alternatives --install /etc/alternatives/vi vi /bin/vim 100 \
>   --slave /etc/alternatives/vi.1.gz vi.1.gz /usr/share/man/man1/vi.1.gz
> # ln -s /etc/alternatives/vi /bin/vi
> # alternatives --set vi /bin/nvi
>
> In any case, vi will only ever be invoked by the user, and the behavior
> of nvi versus vim-minimal is quite similar, so it won't break anything
> (compared to changing /bin/sh to zsh for example).  Debian already
> have /bin/vi as an alternative.
>
> Note that this nvi package doesn't rely on any files under /usr, so I
> could install nvi and nview in /bin and give the user nvi for use in a
> recovery situation where /usr is unavailable.
>


financial.com AG

Munich head office/Hauptsitz München: Maria-Probst-Str. 19 | 80939 München | Germany
Frankfurt branch office/Niederlassung Frankfurt: Messeturm | Friedrich-Ebert-Anlage 49 | 60327 Frankfurt | Germany
Management board/Vorstand: Dr. Steffen Boehnert (CEO/Vorsitzender) | Dr. Alexis Eisenhofer | Dr. Yann Samson | Matthias Wiederwach
Supervisory board/Aufsichtsrat: Dr. Dr. Ernst zur Linden (chairman/Vorsitzender)
Register court/Handelsregister: Munich – HRB 128 972 | Sales tax ID number/St.Nr.: DE205 370 553


More information about the suggest mailing list