Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 3/23/84; site cbosgd.UUCP Path: utzoo!watmath!clyde!burl!we13!ihnp4!cbosgd!mark From: mark@cbosgd.UUCP (Mark Horton) Newsgroups: net.unix-wizards,net.bugs Subject: Re: MAJOR BUG (mode lines) Message-ID: <1277@cbosgd.UUCP> Date: Tue, 17-Apr-84 16:36:55 EST Article-I.D.: cbosgd.1277 Posted: Tue Apr 17 16:36:55 1984 Date-Received: Wed, 18-Apr-84 19:04:39 EST References: <137@utecfa.UUCP> Organization: AT&T Bell Laboratories, Columbus Lines: 12 Why do you assume this is a bug? It was put in as a feature at the request of some users, so that vi "set" commands could automatically be run when certain files are entered. EMACS has a similar feature. The only problems are (1) it isn't documented (an oversight on my part), and (2) you seem to have found a security problem. It would indeed be possible to take the feature out (and since most of you didn't know it was there, you'd never notice that it was gone), but it makes more sense to set a flag while checkmodeline is in operation, and refuse to do any ! or sh commands with this flag set. The mode line feature was put into vi version 3.7, and is still in, so it's in 4.2BSD and System V.