Bug 3989 - /bin/mail has bad location of vi command
/bin/mail has bad location of vi command
Product: Red Hat Linux
Classification: Retired
Component: mailx (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: David Lawrence
Depends On:
  Show dependency treegraph
Reported: 1999-07-11 16:35 EDT by Jim Speth
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 1999-07-13 10:03:32 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Jim Speth 1999-07-11 16:35:38 EDT
if you run /bin/mail and issue a ~v from within edit mode
it gives the following errors:

  /usr/bin/vi: No such file or directory
  Fatal error in process.

This is because vi is at /bin/vi.
Comment 1 Jay Turner 1999-07-12 12:07:59 EDT
/usr/bin/vi is actually a link to vim on a 6.0 system, so this is why
the path is set like that.  You can change VISUAL parameter to specify
a different path for the editor.
Comment 2 Jim Speth 1999-07-12 12:27:59 EDT
actually, on my new 6.0 system, with all errata installed, there is no
link at /usr/bin/vi.  i have the following vim packages installed:
neither put anything at /usr/bin/vi

i understand how the VISUAL variable works, but I think the default
behavior should not be broken.  so it should either be the case that
vim is reconfigured to have the correct path hardcoded, or the link
that you think exists should really exist.

unless I'm missing something?  which package owns the link at
/usr/bin/vi on your system?  perhaps I don't have that package
Comment 3 Jeff Johnson 1999-07-13 10:03:59 EDT
Actually, it's not a link at all. There are three different vi
executables depending on feature set. The vim-enhanced package
contains /usr/bin/vi.

Note You need to log in before you can comment on or make changes to this bug.