From owner-freebsd-qa@FreeBSD.ORG Mon Apr 17 17:46:16 2006 Return-Path: X-Original-To: freebsd-qa@freebsd.org Delivered-To: freebsd-qa@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 307EF16A401; Mon, 17 Apr 2006 17:46:16 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (66-23-211-162.clients.speedfactory.net [66.23.211.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 73BF943D4C; Mon, 17 Apr 2006 17:46:15 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from localhost (john@localhost [127.0.0.1]) by server.baldwin.cx (8.13.4/8.13.4) with ESMTP id k3HHk3We073454; Mon, 17 Apr 2006 13:46:04 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-qa@freebsd.org, BjXrn KXnig Date: Mon, 17 Apr 2006 13:12:19 -0400 User-Agent: KMail/1.9.1 References: <20060415071815.56F845285C@eurystheus.local> In-Reply-To: <20060415071815.56F845285C@eurystheus.local> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200604171312.21710.jhb@freebsd.org> X-Virus-Scanned: ClamAV 0.87.1/1403/Sun Apr 16 05:44:45 2006 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.0 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on server.baldwin.cx Cc: FreeBSD-gnats-submit@freebsd.org, qa@freebsd.org Subject: Re: [patch] environment variable EDITOR is set wrong in fixit mode X-BeenThere: freebsd-qa@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD Quality Assurance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Apr 2006 17:46:16 -0000 On Saturday 15 April 2006 03:18, BjXrn KXnig wrote: >=20 > >Submitter-Id: current-users > >Originator: Bj=F6rn K=F6nig > >Organization:=09 > >Confidential: no=20 > >Synopsis: [patch] environment variable EDITOR is set wrong in fixit mode > >Severity: non-critical > >Priority: medium > >Category: misc > >Class: change-request > >Release: FreeBSD 6.1-RC i386 > >Environment: > System: FreeBSD hoppel.local 6.1-RC FreeBSD 6.1-RC #0: Fri Apr 14 20:32:0= 6 CEST 2006 bkoenig@hoppel.local:/home/bkoenig/obj/home/bkoenig/devel/freeb= sd/RELENG_6_1/src/sys/HOPPEL i386 > >Description: > If you start the fixit mode of disc1 then the > environment variable EDITOR is set wrong. Its > value is /mnt2/stand/vi, but vi doesn't exist > at this place. >=20 > This concerns the variable PAGER likewise. > =09 > >How-To-Repeat: > Go to fixit mode: >=20 > Fixit# $EDITOR > /mnt2/stand/vi: not found >=20 > >Fix: > There are at least two possible solutions. >=20 > First of all /mnt2/stand is a symlink to /rescue, > but /rescue doesn't exist. It migth be better to > create a symlink to "rescue" instead of "/rescue". > In this case /mnt2/stand would be a symlink to > "rescue", i.e. /mnt2/rescue becomes the real path. > EDITOR don't need to be changed and vi works. PAGER > still doesn't work, because more doesn't exist > in rescue. >=20 > A second approach would be to simply change EDITOR to > /mnt2/usr/bin/vi resp. PAGER to /mnt/usr/bin/more. >=20 > These two patches deals with the issue. You may > apply both patches. I think the first patch is better and EDITOR should be unchanged. Perhaps the PAGER should be set only if /mnt2/usr/bin/more exists? If you use the fixit floppy instead of the CD I think it won't exist. =2D-=20 John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" =3D http://www.FreeBSD.org From owner-freebsd-qa@FreeBSD.ORG Mon Apr 17 17:46:16 2006 Return-Path: X-Original-To: qa@freebsd.org Delivered-To: freebsd-qa@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 307EF16A401; Mon, 17 Apr 2006 17:46:16 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (66-23-211-162.clients.speedfactory.net [66.23.211.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 73BF943D4C; Mon, 17 Apr 2006 17:46:15 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from localhost (john@localhost [127.0.0.1]) by server.baldwin.cx (8.13.4/8.13.4) with ESMTP id k3HHk3We073454; Mon, 17 Apr 2006 13:46:04 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-qa@freebsd.org, BjXrn KXnig Date: Mon, 17 Apr 2006 13:12:19 -0400 User-Agent: KMail/1.9.1 References: <20060415071815.56F845285C@eurystheus.local> In-Reply-To: <20060415071815.56F845285C@eurystheus.local> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200604171312.21710.jhb@freebsd.org> X-Virus-Scanned: ClamAV 0.87.1/1403/Sun Apr 16 05:44:45 2006 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.0 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on server.baldwin.cx Cc: FreeBSD-gnats-submit@freebsd.org, qa@freebsd.org Subject: Re: [patch] environment variable EDITOR is set wrong in fixit mode X-BeenThere: freebsd-qa@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD Quality Assurance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Apr 2006 17:46:16 -0000 On Saturday 15 April 2006 03:18, BjXrn KXnig wrote: >=20 > >Submitter-Id: current-users > >Originator: Bj=F6rn K=F6nig > >Organization:=09 > >Confidential: no=20 > >Synopsis: [patch] environment variable EDITOR is set wrong in fixit mode > >Severity: non-critical > >Priority: medium > >Category: misc > >Class: change-request > >Release: FreeBSD 6.1-RC i386 > >Environment: > System: FreeBSD hoppel.local 6.1-RC FreeBSD 6.1-RC #0: Fri Apr 14 20:32:0= 6 CEST 2006 bkoenig@hoppel.local:/home/bkoenig/obj/home/bkoenig/devel/freeb= sd/RELENG_6_1/src/sys/HOPPEL i386 > >Description: > If you start the fixit mode of disc1 then the > environment variable EDITOR is set wrong. Its > value is /mnt2/stand/vi, but vi doesn't exist > at this place. >=20 > This concerns the variable PAGER likewise. > =09 > >How-To-Repeat: > Go to fixit mode: >=20 > Fixit# $EDITOR > /mnt2/stand/vi: not found >=20 > >Fix: > There are at least two possible solutions. >=20 > First of all /mnt2/stand is a symlink to /rescue, > but /rescue doesn't exist. It migth be better to > create a symlink to "rescue" instead of "/rescue". > In this case /mnt2/stand would be a symlink to > "rescue", i.e. /mnt2/rescue becomes the real path. > EDITOR don't need to be changed and vi works. PAGER > still doesn't work, because more doesn't exist > in rescue. >=20 > A second approach would be to simply change EDITOR to > /mnt2/usr/bin/vi resp. PAGER to /mnt/usr/bin/more. >=20 > These two patches deals with the issue. You may > apply both patches. I think the first patch is better and EDITOR should be unchanged. Perhaps the PAGER should be set only if /mnt2/usr/bin/more exists? If you use the fixit floppy instead of the CD I think it won't exist. =2D-=20 John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" =3D http://www.FreeBSD.org