Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Jan 2003 01:36:11 -0000
From:      "Petersen" <petersen@fully.qualified.domain.name>
To:        "Paul Hoffman" <phoffman@proper.com>
Cc:        <questions@freebsd.org>
Subject:   RE: A vi for /bin?
Message-ID:  <KOEDJPGCNAIOODFOCJJIEEAIGDAA.petersen@fully.qualified.domain.name>
In-Reply-To: <p05210200ba58e71d986e@[206.173.146.196]>

next in thread | previous in thread | raw e-mail | index | archive | help
Paul Hoffman wrote:

> I'm kinda surprised this isn't in the FAQ (or at least not in a place 
> that I could find it). It is really impossible to build a vi with no 
> external dependencies that can be installed in /bin? 

What made you think it was impossible?

> All I want is 
> something that knows how to full-screen edit on the console, nothing 
> else. I dread the day that I can only mount / and not /usr and need 
> to edit fstab or rc.conf, and have to use ed.
> 
> (Just in case the answer is "no, you really can't do that", I have 
> put a plain-text copy of the ed man page in /bin, but still...)
> 

Assuming you have the object files from a buildworld hanging around, then
cd /usr/obj/usr/src/usr.bin/vi
cc -O -pipe -o vi *.o -lncurses -static && strip vi && mv vi /bin/
should probably supply you with what you want.

Petersen

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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