From: utzoo!decvax!ucbvax!CAD:tektronix!teklabs!terryl
Newsgroups: net.unix-wizards
Title: Re: small bug in vi
Article-I.D.: teklabs.1660
Posted: Mon Jan 10 20:29:51 1983
Received: Wed Jan 12 03:19:04 1983


     Actually, it's a little more subtle than was reported (and yes it is a bug
because vi does not write the buffer back out, so the file does stay the same).
The subtlety is that it is the action of deleting the last line in the file
that changes vi's idea of if the file was modified or not. The following
sequence of commands produces the same results (this being in ex command mode):

		1,$-1d
		1d (or $d, etc.)

     If one then quits the editor without writing the file out, ex/vi will let
you do that. Very strange indeed!!!!!


				Terry Laskodi
				     of
				Tektronix