From owner-freebsd-questions@FreeBSD.ORG Fri May 15 06:46:53 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 E7B9B106564A for ; Fri, 15 May 2009 06:46:53 +0000 (UTC) (envelope-from invalid.pointer@gmail.com) Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.24]) by mx1.freebsd.org (Postfix) with ESMTP id 9A6FE8FC1D for ; Fri, 15 May 2009 06:46:53 +0000 (UTC) (envelope-from invalid.pointer@gmail.com) Received: by qw-out-2122.google.com with SMTP id 3so1232029qwe.7 for ; Thu, 14 May 2009 23:46:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=8pQx241vmLD1Waafdjs3RoNTbAGWmRrxzKSPOHYBDDM=; b=b4jpEguVzfispDJOpIr3IBnbpB8OtLuIjdwa9BOQnzfT8vgdkRAajQ2omQMMrt1UsY MVkPYRFSxJ46BbdZmUk3lXJ9ZI0eJkJpNFNaY/hWtjRFDMDVpXsM9em0GtXoLMWs2+yy HJ7pjinxBsqmW6w0xQnj1Fcq3y7c2JS99BNIc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=oNc0CoZ7QPYa3o3TaxprvPCTn/b5yeDHe0yJ/+H59QAjUaD+YdP1Gliawe7Hx7AiNl zg+pvdUkM6eLWo6UX1DqvLPu7MnllaCuou9vgRjzsU9/pkBD/YIZVjvIek9vcxOUkAk4 3/o+hwy5XeKohuEgvCng2VKovqiAuS1ciFmPc= Received: by 10.224.60.203 with SMTP id q11mr3561027qah.245.1242370012988; Thu, 14 May 2009 23:46:52 -0700 (PDT) Received: from ?152.144.218.148? ([203.92.44.179]) by mx.google.com with ESMTPS id 4sm1404853qwe.57.2009.05.14.23.46.49 (version=SSLv3 cipher=RC4-MD5); Thu, 14 May 2009 23:46:51 -0700 (PDT) Message-ID: <4A0D0FD6.4040107@gmail.com> Date: Fri, 15 May 2009 12:16:46 +0530 From: Manish Jain User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: Mel Flynn References: <200905142019.56242.mel.flynn+fbsd.questions@mailing.thruhere.net> In-Reply-To: <200905142019.56242.mel.flynn+fbsd.questions@mailing.thruhere.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: How to move vi to /bin X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 May 2009 06:46:54 -0000 Mel Flynn wrote: > On Wednesday 13 May 2009 09:21:46 manish jain wrote: > >> I want to move vi to /bin so that I have an editor available in >> single-user mode. > > The only reason to need an editor and not have /usr and /var available is to > edit /etc/fstab. It is trivial to spot errors with /rescue/cat and fix with > /rescue/sed, without having to worry about a terminal. > > In all other cases: > fsck -p > /etc/rc.d/mountcritlocal start > /etc/rc.d/ldconfig start > > And one can use any editor one would want. Don't forget to export or setenv > TERM to cons25 from 'dumb'. > From all the discussion I have walked through on the issue of where to place vi, it does appear FreeBSD has a skewed policy on the issue. There are plenty of reasons you might need access an editor in single-user mode - editing fstab is just one. Having to use the workarounds suggested in place of vi is not so good, and manually moving vi to /bin is not simply a matter of 'mv /usr/bin/vi /bin/'. One of the things I would dearly like to see in a future release is vi being placed under /bin. -- Regards Manish Jain invalid.pointer@gmail.com Laast year I kudn't spell Software Engineer. Now I are won.