From owner-freebsd-questions Sat Jan 25 17:36:22 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AD90537B401 for ; Sat, 25 Jan 2003 17:36:21 -0800 (PST) Received: from britersen.co.uk (britersen.co.uk [212.159.80.154]) by mx1.FreeBSD.org (Postfix) with ESMTP id 514A743ED8 for ; Sat, 25 Jan 2003 17:36:20 -0800 (PST) (envelope-from petersen@fully.qualified.domain.name) Received: from petersen (petersen@petersen.petenet.britersen.co.uk [192.168.1.1]) by britersen.co.uk (8.12.7/8.12.7) with SMTP id h0Q1aB3F082715; Sun, 26 Jan 2003 01:36:12 GMT (envelope-from petersen@fully.qualified.domain.name) From: "Petersen" To: "Paul Hoffman" Cc: Subject: RE: A vi for /bin? Date: Sun, 26 Jan 2003 01:36:11 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 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 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