From owner-freebsd-questions Sun Dec 20 19:32:50 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA27247 for freebsd-questions-outgoing; Sun, 20 Dec 1998 19:32:50 -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 TAA27241 for ; Sun, 20 Dec 1998 19:32:46 -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 OAA26509; Mon, 21 Dec 1998 14:02:27 +1030 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.9.1/8.9.0) id OAA67924; Mon, 21 Dec 1998 14:02:26 +1030 (CST) Message-ID: <19981221140226.Q24125@freebie.lemis.com> Date: Mon, 21 Dec 1998 14:02:26 +1030 From: Greg Lehey To: Sue Blake Cc: gmarco@giovannelli.it, questions@FreeBSD.ORG Subject: Re: Editors in /bin (was: Why ...) References: <199812200805.JAA00654@www.giovannelli.it> <19981221090137.F24125@freebie.lemis.com> <19981221140738.21638@welearn.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: <19981221140738.21638@welearn.com.au>; from Sue Blake on Mon, Dec 21, 1998 at 02:07:38PM +1100 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 Monday, 21 December 1998 at 14:07:38 +1100, Sue Blake wrote: > On Mon, Dec 21, 1998 at 09:01:37AM +1030, Greg Lehey wrote: >> 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. > > Oh, so it's not the same as we use these days? When I used the PDP-11 > ed, I couldn't tell the difference, it felt just like home. There ya > go! Take a look at the sources: FreeBSD: -rw-r--r-- 1 grog lemis 6879 Dec 31 1997 buf.c -rw-r--r-- 1 grog lemis 11025 Aug 8 1997 cbc.c -rw-r--r-- 1 grog lemis 6243 Aug 8 1997 glbl.c -rw-r--r-- 1 grog lemis 8961 Aug 8 1997 io.c -rw-r--r-- 1 grog lemis 32518 Aug 8 17:07 main.c -rw-r--r-- 1 grog lemis 3835 Aug 8 1997 re.c -rw-r--r-- 1 grog lemis 6972 Aug 8 17:07 sub.c -rw-r--r-- 1 grog lemis 4455 Aug 8 1997 undo.c 2.11BSD: -r--r----- 1 root 21738 Feb 9 1987 ed.c 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