Bug 3113

Summary: Calling vi from more doesn't work
Product: [Retired] Red Hat Linux Reporter: pmelo
Component: util-linuxAssignee: Jay Turner <jturner>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: 6.0CC: pmelo, srevivo
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 1999-05-28 17:49:35 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 pmelo 1999-05-28 11:00:13 UTC
Hi.

Just a simple bug, with a very simple fix-up: in util-linux,
the "more" program searches for vi (on a v key) in
/usr/bin/vi. However, vi is on /bin/vi, so it allways fails.

Two simple solutions:
1) change /usr/bin/vi to /bin/vi on the source - you need to
change the manual page too, since it explicitly refers
/usr/bin/vi
	or
2) to create a symlink from /usr/bin/vi to /bin/vi


Workaround:
Use "less"
Best regards,
	Paulo Melo

Comment 1 Dale Lovelace 1999-05-28 14:34:59 UTC
Perhaps you have installed a non-standard vim package?

[root@gandalf SPECS]# cat /etc/redhat-release
Red Hat Linux release 6.0 (Hedwig)
[root@gandalf SPECS]# rpm -qa | grep vim
vim-common-5.3-7
vim-enhanced-5.3-7
vim-minimal-5.3-7
vim-X11-5.3-7
[root@gandalf SPECS]# whereis vim
vim: /usr/bin/vim /usr/share/vim /usr/man/man1/vim.1

Comment 2 Dale Lovelace 1999-05-28 14:37:59 UTC
Oh yeah:

[root@gandalf SPECS]# whereis vi
vi: /bin/vi /usr/bin/vi /usr/man/man1/vi.1


------- Email Received From  Paulo Melo <pmelo.pt> 05/28/99 10:51 -------