From owner-freebsd-questions@FreeBSD.ORG Fri Jun 26 01:01:48 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C561D1065672 for ; Fri, 26 Jun 2009 01:01:48 +0000 (UTC) (envelope-from green_tiger@comcast.net) Received: from QMTA13.emeryville.ca.mail.comcast.net (qmta13.emeryville.ca.mail.comcast.net [76.96.27.243]) by mx1.freebsd.org (Postfix) with ESMTP id ABF868FC08 for ; Fri, 26 Jun 2009 01:01:48 +0000 (UTC) (envelope-from green_tiger@comcast.net) Received: from OMTA22.emeryville.ca.mail.comcast.net ([76.96.30.89]) by QMTA13.emeryville.ca.mail.comcast.net with comcast id 8QHh1c0061vN32cADR1pXt; Fri, 26 Jun 2009 01:01:49 +0000 Received: from [192.168.1.2] ([69.250.45.68]) by OMTA22.emeryville.ca.mail.comcast.net with comcast id 8R2d1c00E1UFfxx8iR2fs1; Fri, 26 Jun 2009 01:02:39 +0000 Message-ID: <4A441DF9.8080403@comcast.net> Date: Thu, 25 Jun 2009 21:01:45 -0400 From: "John L. Templer" User-Agent: Thunderbird 2.0.0.22 (X11/20090608) MIME-Version: 1.0 To: Ruben de Groot , FreeBSD Mailing List References: <4A430505.2020909@gmail.com> <4A430CDF.2010205@comcast.net> <20090625114549.GA26683@ei.bzerk.org> In-Reply-To: <20090625114549.GA26683@ei.bzerk.org> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: Subject: Re: The question of moving vi to /bin X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Jun 2009 01:01:49 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Ruben de Groot wrote: > On Thu, Jun 25, 2009 at 01:36:31AM -0400, John L. Templer typed: >> ed is an interactive program, and it has always been considered as such, >> at least since BSD 4.2. Way back then there were three main editors, >> ex, vi, and ed. If you had a nice video terminal then you used vi. But >> if you were stuck using a hard copy terminal like a Decwriter, then you >> used ex. And ed was the simplified (dumbed down) editor for newbies. >> >> ed is an interactive program because the user "interacts" with it. You >> give it command, it does something, you give it some more commands, it >> does more stuff, etc. Interactive does not mean screen based. > > ed can be used very well non-interactively. > e.g. a script made by diff -e can be piped to it. > > Ruben > > Yes, that's true. Perhaps I misspoke myself. ed can be used both in interactive mode and in a script, which is what I called "command line mode". However it's not correct to say that ed is not an interactive program, as it definitely can be used interactively. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkpEHekACgkQjkAlo11skePV5ACcCZaOsxztyNyWIlNBuTMuL/nu FAYAnRiKFxy+nezfkA0I9Q6Nou9Sc2Ve =SEx6 -----END PGP SIGNATURE-----