From owner-freebsd-questions Sun Dec 20 14:37:26 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA29926 for freebsd-questions-outgoing; Sun, 20 Dec 1998 14:37:26 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA29914 for ; Sun, 20 Dec 1998 14:37:07 -0800 (PST) (envelope-from grog@freebie.lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.9.1/8.9.0) with ESMTP id JAA25700; Mon, 21 Dec 1998 09:01:37 +1030 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.9.1/8.9.0) id JAA66567; Mon, 21 Dec 1998 09:01:37 +1030 (CST) Message-ID: <19981221090137.F24125@freebie.lemis.com> Date: Mon, 21 Dec 1998 09:01:37 +1030 From: Greg Lehey To: gmarco@giovannelli.it, questions@FreeBSD.ORG Subject: Editors in /bin (was: Why ...) References: <199812200805.JAA00654@www.giovannelli.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: <199812200805.JAA00654@www.giovannelli.it>; from Gianmarco Giovannelli on Sun, Dec 20, 1998 at 01:55:56AM +0100 WWW-Home-Page: http://www.lemis.com/~grog Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sunday, 20 December 1998 at 1:55:56 +0100, Gianmarco Giovannelli wrote: > > Why there is no text editor in /bin or /sbin or /stand (a simple > text editor, vi, ee or anything else) ? There is: ed > I have the /usr mounted async ... How can edited a file (like > something in /etc) if I am not able to mount the /usr ? > > The only thing I found is ed in /bin but it isn't so much fair to use... It's the traditional ``small'' editor. On my PDP-11, it is all of 9418 bytes long. vi is 82438 bytes long and is in /usr/ucb (since it's BSD software). Sure, you can argue that this is no longer appropriate. But the shared libraries are also in /usr, so any editor in the root file system must be statically linked. Then the question arises: which editor should it be. The answer's simple: the one *you* want. Just link it statically and put it in /bin (not /sbin). Greg -- See complete headers for address, home page and phone numbers finger grog@lemis.com for PGP public key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message