From owner-freebsd-questions@FreeBSD.ORG Wed May 13 08:30:58 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 384DD106567D for ; Wed, 13 May 2009 08:30:58 +0000 (UTC) (envelope-from utisoft@googlemail.com) Received: from mail-ew0-f159.google.com (mail-ew0-f159.google.com [209.85.219.159]) by mx1.freebsd.org (Postfix) with ESMTP id BB31F8FC12 for ; Wed, 13 May 2009 08:30:57 +0000 (UTC) (envelope-from utisoft@googlemail.com) Received: by ewy3 with SMTP id 3so575327ewy.43 for ; Wed, 13 May 2009 01:30:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:reply-to:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=qO8cZr3bzJ8hEdheQiAKWyBg4bZLVKSVcnHBgUOynW4=; b=XE4DTPJaoQ269XyH49WW4Kv9C+U5MwXsJSV1reAKg+C+LPreiOqbAMjeyCpE1lZxUT Hwnp94+/ajq/wVgRW5gmMwvfdZnzVg52+G5mb6FRUl1lo5x9ybYJzfQ9mD+913SQqN8R tNqXh6H6xWIK3tblYybQFbg4Aq5/7crIrr8FU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:cc:content-type:content-transfer-encoding; b=pg6/tSbPBGhn/Qdtw72GFgbP9dNGM3FnzZ1AAthc1xQjP1YzrA8/feoWgtCQWQ0gUs sfbClg4corFLTSdfOZ1T5O7GrdcXqWrxdExFZnEQ4YuqbV6MeHeapY0ntMzVW774+s/s 15xLMI8nDvB74A6yzu6Hagj/4teG9yCl5nKwQ= MIME-Version: 1.0 Received: by 10.210.78.16 with SMTP id a16mr849333ebb.74.1242203456219; Wed, 13 May 2009 01:30:56 -0700 (PDT) In-Reply-To: <20090513082716.GB1363@joni.subvert.org.uk> References: <20090513082716.GB1363@joni.subvert.org.uk> From: Chris Rees Date: Wed, 13 May 2009 09:30:36 +0100 Message-ID: To: "freebsd-questions@freebsd.org" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: manish jain Subject: Re: How to move vi to /bin X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: utisoft@gmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 May 2009 08:30:58 -0000 > On Wed, May 13, 2009 at 12:51:46PM +0530, manish jain wrote: >> I want to move vi to /bin so that I have an editor available in >> single-user mode. This sounds simple (and should be if all you have is >> a single partition), but there are problems. For starters, terminfo >> can't locate its database in single-user mode. >> >> Could anyone please tell me how to go about this on a 7.x system ? I >> am also curious to know why FreeBSD doesn't place vi under /bin in the >> first place. You may also have a problem, because IIRC /usr/bin/vi is dynamically linked with stuff in /usr/lib. Try it, it may work. It's probably why it's in /usr/bin. Or just use /rescue/vi as Andrew suggested! Chris -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail?