Article View: net.bugs
Article #447Vi isn't nasty enough, so user looses lines
From: David Herron, NPR Lover
Date: Wed, 21 Aug 1985 02:48
Date: Wed, 21 Aug 1985 02:48
21 lines
1256 bytes
1256 bytes
Index: Everybody's favorite text editor.
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.
:-)
--
--- David Herron
--- ARPA-> ukma!david@ANL-MCS.ARPA
--- UUCP-> {ucbvax,unmvax,boulder,oddjob}!anlams!ukma!david
--- {ihnp4,decvax,ucbvax}!cbosgd!ukma!david
Hackin's in me blood. My mother was known as Miss Hacker before she married!
Technical Details
Message-ID:
<2073@ukma.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!watmath!clyde!cbosgd!ukma!davidShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 alpha 4/3/85; site ukma.UUCP Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!cbosgd!ukma!david From: david@ukma.UUCP (David Herron, NPR Lover) Newsgroups: net.bugs Subject: Vi isn't nasty enough, so user looses lines Message-ID: <2073@ukma.UUCP> Date: Tue, 20-Aug-85 22:48:30 EDT Article-I.D.: ukma.2073 Posted: Tue Aug 20 22:48:30 1985 Date-Received: Sat, 24-Aug-85 03:41:45 EDT Organization: U of Kentucky, Mathematical Sciences, Lexington KY Lines: 21