From owner-freebsd-questions@FreeBSD.ORG Thu Jun 25 05:03:03 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 621EC106566C for ; Thu, 25 Jun 2009 05:03:03 +0000 (UTC) (envelope-from invalid.pointer@gmail.com) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.174]) by mx1.freebsd.org (Postfix) with ESMTP id 33E8B8FC0A for ; Thu, 25 Jun 2009 05:03:03 +0000 (UTC) (envelope-from invalid.pointer@gmail.com) Received: by wf-out-1314.google.com with SMTP id 24so388915wfg.7 for ; Wed, 24 Jun 2009 22:03:02 -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:content-type :content-transfer-encoding; bh=1x0LPJ6jyStWi17vT9sa9fwDiIgWmpE+CNJoRP2ux10=; b=J0ziymci6K6FwZ/xT1nJ/xAzhSwsgYZfJY1WNqE6UT0O+Rn+rAl8TwNR71Sh4QZllz ttpkv89o0gitr4a6a4N944SHHMredIwNMcPl8Qms5G+f02CPb9N3MiYznB40NpVxyPTH XieAW55Pvxp/S25tdt5051p2bX4jCWulwawXY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=MVpj6IYQLZYiDkP3VUXDdWsXP1kCMH0FaSmPHHaXHg2Q9A8SLguZYXuZJuWtRUtTLo iO9yAV4eAx1CwePUjQw+Yqi9oxT/t2L6WAOKWFoxEwp8tqa/lFd1yJMPBlNfVBX+suJr TdKN5H84ZFcfUepSoLZ0QRY90wzIdBoSub4+M= Received: by 10.142.230.9 with SMTP id c9mr702419wfh.2.1245906182783; Wed, 24 Jun 2009 22:03:02 -0700 (PDT) Received: from pbbi.freebsd.localdomain ([122.162.238.9]) by mx.google.com with ESMTPS id 22sm7645579wfg.27.2009.06.24.22.02.59 (version=SSLv3 cipher=RC4-MD5); Wed, 24 Jun 2009 22:03:02 -0700 (PDT) Message-ID: <4A430505.2020909@gmail.com> Date: Thu, 25 Jun 2009 10:33:01 +0530 From: Manish Jain User-Agent: Thunderbird 2.0.0.21 (X11/20090618) MIME-Version: 1.0 To: bf1783@googlemail.com, FreeBSD Mailing List 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 05:03:03 -0000 > > If you want to make a case for replacing ed(1), you're going to have > to come up with some concrete reasons for doing so, not just make a > (long and hyperbolic) statement that you don't like it. > Any Unix tool has to clearly fall either under the category of non-interactive (grep, sed, ex) or interactive (vi, wget, sysinstall). The case of non-interactive tools is simple : just do what you are told on the commandline and exit. For interactive tools, at a minimum, the application has to be show what data it is working on and what it does with the data when the user presses a key (or a series of them). ed was never meant to be non-interactive, and it does not fulfil the basic requirements of being interactive. That's one reason. Secondly, how many times does an average commandline user even think of using ed when he needs to edit a file, even in the extreme case where there are no alternatives ? > There have been some recent changes: > > http://svn.freebsd.org/changeset/base/194628 > > > that suggest that this problem is being addressed. Till the improvements are in place, we need the alternative of having vi under /bin rather than /usr/bin. Actually, it surprises me to what extent the core of the FreeBSD community is enamoured with this idea of a micro-minimalistic base, in which it is practically impossible to do anything except run fsck. Matters don't stop there. Seeing the limitations of this approach, the community churns up wierd workarounds like /rescue/vi, when all that was needed was shift vi from /usr. You talk about the need for compliance with old hardware and embedded systems to save a few kilos. How old is the hardware that you have in mind ? The oldest system running FreeBSD I know of is a 1997 Pentium with a 2 GB disk, and even that can easily withstand the change I am suggesting. Machines older than that are actually DEAD and don't have to be factored in. As for embedded systems, the primary target of FreeBSD is servers, workstations and *tops. The embedded world hasn't survived riding on FreeBSD, nor the other way round. So from the viewpoint of the greatest good of the largest number, over-indulging a mindset fixed around minimizing the base only leads to degradation, not improvement. Getting to boast of a 900K / won't do any good when people are thinking of having decent firepower (even while in single-user mode) and its ease of use. But I guess my words are of no use when the people who matter just won't listen. So I give any hopes in this regard. -- Regards Manish Jain invalid.pointer@gmail.com +91-96500-10329 Laast year I kudn't spell Software Engineer. Now I are won.