From owner-freebsd-hackers@FreeBSD.ORG Mon Sep 3 11:53:26 2007 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9FE3716A417 for ; Mon, 3 Sep 2007 11:53:26 +0000 (UTC) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (comp.chem.msu.su [158.250.32.97]) by mx1.freebsd.org (Postfix) with ESMTP id 232F913C459 for ; Mon, 3 Sep 2007 11:53:24 +0000 (UTC) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (localhost [127.0.0.1]) by comp.chem.msu.su (8.13.4/8.13.4) with ESMTP id l83Br01c058552; Mon, 3 Sep 2007 15:53:00 +0400 (MSD) (envelope-from yar@comp.chem.msu.su) Received: (from yar@localhost) by comp.chem.msu.su (8.13.4/8.13.4/Submit) id l83BqwY8058547; Mon, 3 Sep 2007 15:52:58 +0400 (MSD) (envelope-from yar) Date: Mon, 3 Sep 2007 15:52:58 +0400 From: Yar Tikhiy To: "Simon 'corecode' Schubert" Message-ID: <20070903115258.GG30502@comp.chem.msu.su> References: <20070901073440.GL85633@comp.chem.msu.su> <46DAFE5C.6070806@freebsd.org> <46DB0834.1060109@fs.ei.tum.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <46DB0834.1060109@fs.ei.tum.de> User-Agent: Mutt/1.5.9i Cc: hackers@freebsd.org, Tim Kientzle Subject: Re: Useful tools missing from /rescue X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Sep 2007 11:53:26 -0000 On Sun, Sep 02, 2007 at 09:00:04PM +0200, Simon 'corecode' Schubert wrote: > Tim Kientzle wrote: > >I atttempted to > >fit 'vi' in there, but curses is rather finicky; > >'sed' would be more useful. > > Mined is a nice editor for this, running without curses. A statically > linked, stripped binary is about 100k in size, so if crunched it would > have a very small impact. It even used to be in our src tree under release/picobsd. However, if we revive it, we'll have to support as many as 4 text editors in the base system, which can be a bit too many. The main problem with /rescue/vi is its being totally useless without the termcap file from /usr, as discussed under PR bin/80256. The solutions suggested there are more or less based on introducing additional trimmed down termcap files in the src tree, which is no better than having 4 editors to support. I'd rather write a small script to extract a subset of terminal types from the main termcap file, and install it as /rescue/termcap. -- Yar