Current vi(1) man page says

    -r     Recover the specified files, or, if no files are specified,
           list the files that could be recovered.  If no recoverable
           files by the specified name exist, the file is edited as if
           the -r option had not been specified.

However, in actuality, if no recoverable files by the specified name
exist, vi simply reports that fact, and does nothing;  it does not
edit the file "as if the -r option had not been specified."

    #  ls kern_time_50.c
    kern_time_50.c
    # vi -r kern_time_50.c
    No files named kern_time_50.c, readable by you, to recover
    #

+------------------+--------------------------+----------------------------+
| Paul Goyette     | PGP Key fingerprint:     | E-mail addresses:          |
| (Retired)        | FA29 0E3B 35AF E8AE 6651 | paul at whooppee dot com   |
| Kernel Developer | 0786 F758 55DE 53BA 7731 | pgoyette at netbsd dot org |
+------------------+--------------------------+----------------------------+

Reply via email to