From owner-freebsd-questions@FreeBSD.ORG Mon Jul 12 13:06:06 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 248D116A4CE for ; Mon, 12 Jul 2004 13:06:06 +0000 (GMT) Received: from mail.cise.ufl.edu (fir.cise.ufl.edu [128.227.205.250]) by mx1.FreeBSD.org (Postfix) with ESMTP id CE0A843D2D for ; Mon, 12 Jul 2004 13:06:05 +0000 (GMT) (envelope-from nthomas@cise.ufl.edu) Received: from localhost (localhost [127.0.0.1]) by mail.cise.ufl.edu (Postfix) with ESMTP id B01CA268 for ; Mon, 12 Jul 2004 09:05:55 -0400 (EDT) Received: from mail.cise.ufl.edu ([127.0.0.1]) by localhost (fir.cise.ufl.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 37230-09 for ; Mon, 12 Jul 2004 09:05:53 -0400 (EDT) Received: from shine.cise.ufl.edu (shine.cise.ufl.edu [128.227.205.20]) by mail.cise.ufl.edu (Postfix) with ESMTP id 934905EE for ; Mon, 12 Jul 2004 09:05:53 -0400 (EDT) Received: (from nthomas@localhost) by shine.cise.ufl.edu (8.9.1a/8.9.1) id JAA24485 for freebsd-questions@freebsd.org; Mon, 12 Jul 2004 09:05:53 -0400 (EDT) Date: Mon, 12 Jul 2004 09:05:53 -0400 From: "N. Thomas" To: freebsd-questions@freebsd.org Message-ID: <20040712130553.GC2863@cise.ufl.edu> References: <5ef8c2f004070819386673edbb@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5ef8c2f004070819386673edbb@mail.gmail.com> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at cise.ufl.edu Subject: Re: nvi and modelines X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jul 2004 13:06:06 -0000 * Jos? de Paula [2004-07-08 23:38:22 -0300]: > The nvi manual page says that modelines will never be implemented. > Does anyone know the rationale behind this Probably because it's a *huge* security risk. Modelines will cause vi to read commands from the file. Can you imagine what it could do in the wrong hands? Even Vim, preeminent among vi clones, uses only a "stripped down" modeline. From the online Vim manual: No other commands than "set" are supported, for security reasons (somebody might create a Trojan horse text file with modelines). Is there something that you want to do with modelines that you can't do in nvi? Thomas -- N. Thomas nthomas@cise.ufl.edu Etiamsi occiderit me, in ipso sperabo