Red Hat Bugzilla – Bug 10882
unable to execute "vi" from inside "more"
Last modified: 2008-05-01 11:37:55 EDT
The component "more" was not available in the drop down list for Red Hat
Linux. Please add it so that this report will be valid, as it does not
pertain to "less".
While using "more" to view the contents of a text file, pressing "v" is
supposed to spawn "vi" to edit the file you are viewing. This worked until
I upgraded redhat to version 6.2 (Zoot). Now when I attempt to vi from
inside more I will get errors such as:
vi +11 majordomo.cfexec failed
vi +11 aliasesexec failed
vi +0 Logexec failed
vi +0 autobounce.cfexec failed
vi +11 autobounceexec failed
vi +11 old.aliasesexec failed
I do not recall this funtionality being available in "less" previously, but
it does work in (Zoot). Using "vi" directly against any of these files
also worked flawlessly. The filenames used can be extracted by removing
the "exec" suffix in column 3. Apparently, even the error message is
broken, by not providing a space between the filename and "exec failed"
portions of the error. (or this could be a hint of the problem itself)
The man page on more explains that this version expects vi to live in /usr/bin
rather than just bin. Creating a link to /bin/vi in /usr/bin or linking
/usr/bin/vim to /usr/bin/vi seems to "fix" the problem for now.
The right component for this bug is util-linux - try "rpm -qf `which more`".
I'm fixing it now.