Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site ucbvax.ARPA
Path: utzoo!watmath!clyde!burl!ulysses!ucbvax!anton
From: anton@ucbvax.ARPA (Jeff Anton)
Newsgroups: net.bugs
Subject: Re: Vi isn't nasty enough, so user looses lines
Message-ID: <10128@ucbvax.ARPA>
Date: Fri, 23-Aug-85 00:42:29 EDT
Article-I.D.: ucbvax.10128
Posted: Fri Aug 23 00:42:29 1985
Date-Received: Sat, 24-Aug-85 18:19:52 EDT
References: <2073@ukma.UUCP>
Reply-To: anton@ucbvax.UUCP (Jeff Anton)
Organization: University of California at Berkeley
Lines: 23

In article <2073@ukma.UUCP> david@ukma.UUCP (David Herron, NPR Lover) writes:
>Problem: Vi allows users to :wq without comment when they've
>	deleted part of the file and written it to something else.  
>	This can result in lost files and confused novices.
>
>Repeat-by: Edit a file.  Delete part of the file.  (dG)  Write
>	the result to another file (:w junk).  Exit by either
>	typing :wq or ZZ.  Notice that the original is shorter.
>	Find backup tape.
>
>Fix:  Add more nastiness to vi.

And you did not expect this?  The command ':wq' means WRITE and quit.
The command 'ZZ' or ':x' means write if the file has been changed
and not written anywhere and then exit.  Vi is nasty enough thank you.

Glad to help a confused professionnal.  At least he loves NPR.
-- 
C knows no bounds.
					Jeff Anton
					U.C.Berkeley
					ucbvax!anton
					anton@berkeley.ARPA