Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site umcp-cs.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!panda!talcott!harvard!seismo!umcp-cs!chris From: chris@umcp-cs.UUCP (Chris Torek) Newsgroups: net.news Subject: Re: Postnews and vi -- odd behavior Message-ID: <5373@umcp-cs.UUCP> Date: Thu, 2-May-85 15:05:42 EDT Article-I.D.: umcp-cs.5373 Posted: Thu May 2 15:05:42 1985 Date-Received: Sat, 4-May-85 00:53:18 EDT References: <10365@brl-tgr.ARPA> Distribution: net Organization: U of Maryland, Computer Science Dept., College Park, MD Lines: 9 It's a vi bug: ":w filename" doesn't reset the editing-file file name, but it does reset the flag vi uses to tell whether you've modified the file since you started. (Type ^G [or :f] to see.) Since ZZ (which is equivalent to ":x") checks this flag, if you haven't made other changes, vi forgets to write the original file again. -- In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 4251) UUCP: {seismo,allegra,brl-bmd}!umcp-cs!chris CSNet: chris@umcp-cs ARPA: chris@maryland