Bug "vi -r" ??
Robert Hartman
rdh at sun.uucp
Fri Feb 26 17:35:47 AEST 1988
In article <1834 at rayssd.ray.com> dhb at rayssd.RAY.COM (David H. Brierley) writes:
>In article <43112 at sun.uucp> rdh at sun.UUCP (Robert Hartman) writes:
>>In article <27000001 at ntvax> greg at ntvax.UUCP writes:
>>> Does anyone know of a problem with the -r option of vi with 4.3BSD ?
>>Well, you DO have to write the file before you quit. ...
>
>What we did here was to modify vi so that when you use the -r flag it
>automatically sets the flag indicating that the file has been changed.
>The impact of this on the user is that if they try to quit without doing
>a write they will get a message to that effect. If you think about it
>for a while this method makes a lot of sense since the file is only
>preserved if you have made changes to it.
I think that this arguably the right way to handle it. It is consistent with
vi's behavior in all other cases where modifications have occurred. -bob.
>--
>David H. Brierley
>Raytheon Submarine Signal Division / 1847 West Main Road / Portsmouth, RI 02871
More information about the Comp.bugs.4bsd.ucb-fixes
mailing list