Re: our containers with alias vim=vi

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2020-10-13 at 12:08 -0500, Chris Adams wrote:
> Once upon a time, Sérgio Basto <sergio@xxxxxxxxxx> said:
> > On Tue, 2020-10-13 at 07:38 -0500, Chris Adams wrote:
> > > Once upon a time, Jonathan Wakely <jwakely@xxxxxxxxxxxxxxxxx>
> > > said:
> > > > Could vim-minimal and vim-enhanced both install the same
> > > > /etc/profile.d/vim.sh file that did something like this?
> > > > 
> > > > if [ -n "${BASH_VERSION-}" -o -n "${KSH_VERSION-}" -o -n
> > > > "${ZSH_VERSION-}" ]; then
> > > >   [ "`/usr/bin/id -u 2>/dev/null || echo 0`" -le 200 ] &&
> > > > return
> > > 
> > > Why this?  Why not alias vi=vim for root?  We don't block root
> > > from
> > > running vim (so it doesn't appear to be for security - vim
> > > already
> > > ignores some things when running as root).
> > 
> > https://bugzilla.redhat.com/show_bug.cgi?id=168010#c2
> > https://bugzilla.redhat.com/show_bug.cgi?id=168010#c4
> 
> Umm, that's 15 years old, and not relevant anymore anyway ("if /usr
> isn't mounted" hasn't been a supported thing in a while).
> 
> I've never seen anybody demanding POSIX compliance, especially at the
> editor, and especially _only_ for root (which is actually confusing
> behavior to me, that root and non-root get different editors when
> typing
> "vi").

OK, so I suggest enable alias vi=vim for root
https://src.fedoraproject.org/rpms/vim/pull-request/14


Thank you.
-- 
Sérgio M. B.
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux