From owner-freebsd-questions Thu May 9 17:54:37 2002 Delivered-To: freebsd-questions@freebsd.org Received: from cactus.fi.uba.ar (cactus.fi.uba.ar [157.92.49.108]) by hub.freebsd.org (Postfix) with ESMTP id 1770137B403 for ; Thu, 9 May 2002 17:54:31 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by cactus.fi.uba.ar (8.11.6/8.11.6) with ESMTP id g4A0pSd43525; Thu, 9 May 2002 21:51:28 -0300 (ART) (envelope-from fgleiser@cactus.fi.uba.ar) Date: Thu, 9 May 2002 21:51:27 -0300 (ART) From: Fernando Gleiser X-X-Sender: To: Matthias Buelow Cc: Subject: Re: an editor in /bin In-Reply-To: <20020510002617.GC21593@reiher.informatik.uni-wuerzburg> Message-ID: <20020509214353.C41150-100000@localhost> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, 10 May 2002, Matthias Buelow wrote: > Fernando Gleiser writes: > > >There is a problem: in single user mode, /usr may not be mounted. If /usr > >is not mounted the terminfo database is not available and any curses-based > >aplication (such like vi or ee) can't work properly. > > Since when does BSD use the terminfo db? Last time I looked, vi etc. > were linked against termcap (or curses), which used the /etc/termcap > file (unlike on System V, of course.) Yep, it seems you are right. I've been doing too much solaris lately =0) > > >That's why in /bin you have ed which is a line editor and not a full screen > >one. > > I rather think ed is in /bin because it's always been there (and many > programs and scripts and users expect it to be there.) Yes. And you need an editor in single user mode, even if it is a very simple one. The original poster asked why ed is in /bin and vi or ee are not. The answer is almost the same: vi and ee need some things which are in /usr, and /usr may not be available in single user mode. Fer > > > --mkb > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message