Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Jun 2009 13:36:58 -0700
From:      Gary Kline <kline@thought.org>
To:        Jonathan McKeown <j.mckeown@ru.ac.za>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Editor in minimal system (was Re: The question of moving vi to /bin)
Message-ID:  <20090626203657.GF35345@thought.org>
In-Reply-To: <200906260959.28165.j.mckeown@ru.ac.za>
References:  <4A430505.2020909@gmail.com> <20090626061157.4e846d36.freebsd@edvax.de> <4ad871310906252114s29fe9d6dredf47a226a82afaa@mail.gmail.com> <200906260959.28165.j.mckeown@ru.ac.za>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090626203657.GF35345>