Bug 135406
| Summary: | /bin/vi isn't POSIX compliant | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 3 | Reporter: | Kjetil T. Homme <kjetilho> |
| Component: | vim | Assignee: | Karsten Hopp <karsten> |
| Status: | CLOSED WONTFIX | QA Contact: | David Lawrence <dkl> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 3.0 | ||
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2005-09-07 15:33:50 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Kjetil T. Homme
2004-10-12 15:35:04 UTC
vim makes no claims to be absolutely POSIX compliant and IMHO multi-level undo is what 99% of our users prefer. There's always the 'redo' comand CTRL-r if want that last changes back. If you insist on POSIX-like undo: Please edit /etc/vimrc or your user .vimrc and a change set nocompatible to set compatible or add that last line if there's no line with set nocompatible. the bug is not about vim, it is about vi. those who want multi-level undo, can
use vim. in a POSIX system, the command
PATH=`getconf PATH` vi
MUST result in a version of the vi editor which complies with POSIX. this is
not the case in Red Hat. now, Red Hat doesn't make any claims of POSIX
compliance yet, but it is one of those things which needs to be fixed to be
certified.
btw, getconf PATH may return something other than /bin as the first element.
Solaris does this, it puts some utilities in /usr/xpg4/bin in the cases where
changing the behaviour of the utilities in /bin would break too many old scripts.
such a change to getconf and a wrapper script /usr/xpg4/bin/vi containing just
#! /bin/sh
export VIMINIT=":set cp"
exec /bin/vi "$@"
would be enough to fix the POSIX incompatibility.
|