From owner-freebsd-questions@FreeBSD.ORG Thu Jun 25 13:46:50 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 994FC1065688 for ; Thu, 25 Jun 2009 13:46:50 +0000 (UTC) (envelope-from invalid.pointer@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.158]) by mx1.freebsd.org (Postfix) with ESMTP id 217398FC17 for ; Thu, 25 Jun 2009 13:46:49 +0000 (UTC) (envelope-from invalid.pointer@gmail.com) Received: by fg-out-1718.google.com with SMTP id 13so100235fge.12 for ; Thu, 25 Jun 2009 06:46:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=Gdc8oX5dMTyKbHacJwdLZ412mFKJ/WtQ/kAokhRZ3eg=; b=LbFzxEFVOs1UzKTW90fH2vcQnoIJZIxxGwVsu3xE3pY0ZzdUCROw7VYYL6u9ygJwfk dcfZHyAdo51HG56AVKGA6LMgwEOMzPmdj6LeO4a0zAW/lvMnne0ZWbz0uhRR8DUzaSYk rkHWMQfbMWkxzxN3cRoSrAEFbt37LOnZ8iMsU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=uurURLnqZQmjet8T0EjfyQSJHP2pz4nZCD9q6fMm8O5bX+uMLjb97O8G0zQNCUqqOX 36IbgII1ddaorb9QP1hG7orCb6LduAnzPPdpmODvMyWZoyj/k34x+BwZAirZzxRxMKiv mKX1k5y3fjmTVtAFo+3VNq1J5GW3RwJ7N/3J0= Received: by 10.86.49.13 with SMTP id w13mr2633250fgw.31.1245937609080; Thu, 25 Jun 2009 06:46:49 -0700 (PDT) Received: from ?152.144.218.35? ([203.92.44.179]) by mx.google.com with ESMTPS id l19sm4414601fgb.11.2009.06.25.06.46.23 (version=SSLv3 cipher=RC4-MD5); Thu, 25 Jun 2009 06:46:27 -0700 (PDT) Message-ID: <4A437FAC.5030101@gmail.com> Date: Thu, 25 Jun 2009 19:16:20 +0530 From: Manish Jain User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: Ruben de Groot , "John L. Templer" , Manish Jain , bf1783@googlemail.com, 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> Content-Type: text/plain; charset=ISO-8859-1; format=flowed 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: Thu, 25 Jun 2009 13:46:50 -0000 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 > > What I meant was the primary usage. Of course, there are many tools (ed included) which will allow non-interactive usage, and still others which can be tweaked or forced into that behaviour. The point about ed is that it does not live up to the needs of its primary mode. Somebody mentioned something about getting multi-line replacement functionality from ed that is not possible with sed. If only the gentleman would go through the documentation for a recent version of sed, he could save himself from a lot of further pain. This following link was posted a few days earlier from freebsd-questions itself : http://www.grymoire.com/Unix/Sed.html There probably isn't much to compare between freebsd and cygwin, but cygwin has dropped ed (and afaik only ed) from its base distribution not for nothing. Maybe they were concerned about the bloat factor, and for good reason in ed's case. -- Regards Manish Jain invalid.pointer@gmail.com +91-96500-10329 Laast year I kudn't spell Software Engineer. Now I are won.