vim/view_wrapper
Zdenek Dohnal f3a9f6f012 patchlevel 2128
Make /usr/bin/vi binary again to be able to use NOEXEC sudo option on it
2026-02-04 17:31:58 +01:00

10 lines
146 B
Bash

#!/usr/bin/sh
# run vim -R if available
if test -f /usr/bin/vim
then
exec /usr/bin/vim -R "$@"
fi
# run vi otherwise
exec /usr/bin/vi -R "$@"