From owner-freebsd-questions@FreeBSD.ORG Fri Jun 26 09:19:27 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 1FAE0106566C for ; Fri, 26 Jun 2009 09:19:27 +0000 (UTC) (envelope-from j.mckeown@ru.ac.za) Received: from a.mail.ru.ac.za (a.mail.ru.ac.za [IPv6:2001:4200:1010::25:1]) by mx1.freebsd.org (Postfix) with ESMTP id 54D3D8FC19 for ; Fri, 26 Jun 2009 09:19:26 +0000 (UTC) (envelope-from j.mckeown@ru.ac.za) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=ru-msa; d=ru.ac.za; h=Received:From:Organization:To:Subject:Date:User-Agent:References:In-Reply-To:X-Face:MIME-Version:Content-Type:Content-Transfer-Encoding:Content-Disposition:Message-Id:X-Virus-Scanned:X-Authenticated-User; b=i9P5AfNBuu8osJGzjkM4JVZNmTsfJgslXSt5kbS77HkOsPE1gGMKWNA1n3lWt1j04AuVzg+KHuptXw0A2SLEeqrQKSYFZPYRB9mZcoHZwHlJ0BN2JymOmNigS/r3WG72; Received: from vorkosigan.ru.ac.za ([2001:4200:1010:1058:219:d1ff:fe9f:a932]:55494) by a.mail.ru.ac.za with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69 (FreeBSD)) (envelope-from ) id 1MK6LI-0005oF-Bu for freebsd-questions@freebsd.org; Fri, 26 Jun 2009 09:59:28 +0200 From: Jonathan McKeown Organization: Rhodes University To: freebsd-questions@freebsd.org Date: Fri, 26 Jun 2009 09:59:28 +0200 User-Agent: KMail/1.9.10 References: <4A430505.2020909@gmail.com> <20090626061157.4e846d36.freebsd@edvax.de> <4ad871310906252114s29fe9d6dredf47a226a82afaa@mail.gmail.com> In-Reply-To: <4ad871310906252114s29fe9d6dredf47a226a82afaa@mail.gmail.com> X-Face: $@VrUx^RHy/}yu]jKf/<4T%/d|F+$j-Ol2"2J$q+%OK1]&/G_S9(=?utf-8?q?HkaQ*=60!=3FYOK=3FY!=27M=60C=0A=09aP=5C9nVPF8Q=7DCilHH8l=3B=7E!4?= =?utf-8?q?2HK6=273lg4J=7Daz?=@1Dqqh:J]M^"YPn*2IWrZON$1+G?oX3@ =?utf-8?q?k=230=0A=0954XDRg=3DYn=5FF-etwot4U=24b?=dTS{i X-Virus-Scanned: a.mail.ru.ac.za (2001:4200:1010::25:1) X-Authenticated-User: s0900137 from vorkosigan.ru.ac.za (2001:4200:1010:1058:219:d1ff:fe9f:a932) using auth_plaintext Subject: 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 09:19:27 -0000 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