From owner-cvs-all Sat Jan 9 05:43:37 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA00325 for cvs-all-outgoing; Sat, 9 Jan 1999 05:43:37 -0800 (PST) (envelope-from owner-cvs-all@FreeBSD.ORG) Received: from korin.warman.org.pl (korin.nask.waw.pl [195.187.243.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id FAA00317; Sat, 9 Jan 1999 05:43:29 -0800 (PST) (envelope-from abial@nask.pl) Received: from localhost (abial@localhost) by korin.warman.org.pl (8.9.1/8.8.5) with SMTP id OAA23467; Sat, 9 Jan 1999 14:47:53 +0100 (CET) X-Authentication-Warning: korin.warman.org.pl: abial owned process doing -bs Date: Sat, 9 Jan 1999 14:47:52 +0100 (CET) From: Andrzej Bialecki X-Sender: abial@korin.warman.org.pl To: Kazutaka YOKOTA cc: Andrzej Bialecki , cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/sys/i386/i386 userconfig.c In-Reply-To: <199901090955.SAA08764@zodiac.mech.utsunomiya-u.ac.jp> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk On Sat, 9 Jan 1999, Kazutaka YOKOTA wrote: > Since INTOR_USERCONFIG was introduced a couple of months ago, I find > the behavior of the UserConfig prompt odd, if not broken. > > Even if I don't enter UserConfig, I always got "config> quit" as below > because userconfig.:getchar() returns "quit" when !RB_CONFIG. I think > such echo shouldn't be showing when the user had no intention of > running UserConfig in the first place. Yeah, I know - I think it was msmith's idea of the way it should deal with such case, because of the kludge in getchar() which checks for various flags. Needless to say it should be moved to some separate function. Perhaps it should be rewritten in whole. My fix was just to, well, make the flags work ok with present structure of userconfig. > If I do enter UserConfig by giving -c option to the kernel, I got a > banner "FreeBSD Kernel Configuration Utility...", but it shows AFTER > the first "config>" prompt. This is slightly annoying. It should be > printed BEFORE the "config>" prompt, shouldn't it? That's because the check is done inside the first invocation of getchar(), just after the "config> " prompt is printed. I agree, this should be changed, but then perhaps it would be better to rewrite this portion altogether instead of fixing yet another symptom of the real problem... Andrzej Bialecki -------------------- ++-------++ ------------------------------------- ||PicoBSD|| FreeBSD in your pocket? Go and see: Research & Academic |+-------+| "Small & Embedded FreeBSD" Network in Poland | |TT~~~| | http://www.freebsd.org/~picobsd/ -------------------- ~-+==---+-+ ------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message