From owner-freebsd-questions@FreeBSD.ORG Fri Jun 26 20:37: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 D9D951065674 for ; Fri, 26 Jun 2009 20:37:03 +0000 (UTC) (envelope-from kline@thought.org) Received: from aristotle.thought.org (aristotle.thought.org [209.180.213.210]) by mx1.freebsd.org (Postfix) with ESMTP id 781E38FC1C for ; Fri, 26 Jun 2009 20:37:03 +0000 (UTC) (envelope-from kline@thought.org) Received: from thought.org (tao.thought.org [10.47.0.250]) (authenticated bits=0) by aristotle.thought.org (8.14.2/8.14.2) with ESMTP id n5QKb2K2058421; Fri, 26 Jun 2009 13:37:02 -0700 (PDT) (envelope-from kline@thought.org) Received: by thought.org (nbSMTP-1.00) for uid 1002 kline@thought.org; Fri, 26 Jun 2009 13:36:58 -0700 (PDT) Date: Fri, 26 Jun 2009 13:36:58 -0700 From: Gary Kline To: Jonathan McKeown Message-ID: <20090626203657.GF35345@thought.org> References: <4A430505.2020909@gmail.com> <20090626061157.4e846d36.freebsd@edvax.de> <4ad871310906252114s29fe9d6dredf47a226a82afaa@mail.gmail.com> <200906260959.28165.j.mckeown@ru.ac.za> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200906260959.28165.j.mckeown@ru.ac.za> User-Agent: Mutt/1.4.2.3i X-Organization: Thought Unlimited. Public service Unix since 1986. X-Of_Interest: With 22++ years of service to the Unix community. X-Spam-Status: No, score=-4.4 required=3.6 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.2.3 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on aristotle.thought.org Cc: freebsd-questions@freebsd.org Subject: Re: Editor in minimal system (was 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 20:37:04 -0000 On Fri, Jun 26, 2009 at 09:59:28AM +0200, Jonathan McKeown wrote: > This whole thread only really got started because I questioned Manish Jain's > assertion that there was no editor available in /bin. > > To summarise: > > There are several editors available ranging from ed (49604 bytes) and ee > (60920 bytes) (both with two library dependencies) to emacs (in ports; > 5992604 bytes and 50 library dependencies in my installation) and probably > beyond. > > One of them, ed, is available in /bin and therefore in single-user mode. > > Two of them, ed and vi, are available in /rescue and therefore in single-user > mode even when something horrible happens and libraries are broken (although > /rescue/vi is currently slightly broken itself due to the termcap issue which > is being fixed in -CURRENT and I hope will be MFC'd). > > Anyone who wants /usr/bin/vi available in single-user mode can install FreeBSD > with one large partition; or mount /usr once in single-user mode. > > The original poster suggested that the fix for not having vi in /bin was not > to have any editor at all in /rescue, which comprehensively misses the point > of /rescue. > > The only argument that's been advanced for moving vi seems to be ``vi should > be in /bin because that's how I want it''. I find that argument unconvincing, > but it's not up to me. I'm open to a sensible argument, if anyone has one. > > Jonathan What about making it be a build option? Or at least symlink the static vi in /rescue to /bin...? I mean we have 1.5TB drives now! 3700 blocks is a burp. A small burp. For that matter, why not have the option of moving the majority of /rescue to /bin? I've only had to use the rescue floppy a few times, but did so only because i needed grep and vi to edit /etc/fsck ... And major, irksome desl using cat and ed to look at that file. And a few others in /etc. gary -- Gary Kline kline@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org For FBSD list: http://transfinite.thought.org/slicejourney.php The 4.98a release of Jottings: http://jottings.thought.org/index.php