From owner-cvs-all Mon May 28 12:14:52 2001 Delivered-To: cvs-all@freebsd.org Received: from mail.gmx.net (pop.gmx.net [194.221.183.20]) by hub.freebsd.org (Postfix) with SMTP id B675F37B423 for ; Mon, 28 May 2001 12:14:49 -0700 (PDT) (envelope-from Gerhard.Sittig@gmx.net) Received: (qmail 30436 invoked by uid 0); 28 May 2001 19:14:47 -0000 Received: from pd950883f.dip.t-dialin.net (HELO speedy.gsinet) (217.80.136.63) by mail.gmx.net (mail09) with SMTP; 28 May 2001 19:14:47 -0000 Received: (from sittig@localhost) by speedy.gsinet (8.8.8/8.8.8) id UAA28432 for cvs-all@freebsd.org; Mon, 28 May 2001 20:50:49 +0200 Date: Mon, 28 May 2001 20:50:49 +0200 From: Gerhard Sittig To: cvs-all@freebsd.org Subject: Re: cvs commit: src/sbin/sysctl sysctl.8 sysctl.c Message-ID: <20010528205049.M253@speedy.gsinet> References: <200105281215.f4SCFkG69481@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <200105281215.f4SCFkG69481@freefall.freebsd.org>; from des@FreeBSD.org on Mon, May 28, 2001 at 05:15:46AM -0700 Organization: System Defenestrators Inc. Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, May 28, 2001 at 05:15 -0700, Dag-Erling Smorgrav wrote: > des 2001/05/28 05:15:46 PDT > > Modified files: > sbin/sysctl sysctl.8 sysctl.c > Log: > Try to make sysctl options slightly more orthogonal: > > [ ... ] > - ignore -a if one or more variables were listed on the command line. Does this mean that the -a option could or should be assumed to always be on? This looks to me like netstat(1): - If you provide an interface and parameters, they get applied. - If you provide an interface only, its configuration gets listed. - If you don't provide any parameter, all the interfaces get listed. With the above sysctl(8) patch and an always assumed -a switch you get something similar - If you provide one or more variables they get listed / applied (depending on the '=' operator and the RHS expression). - If you don't provide a variable, all the settings are listed. - Optional, and I think it's already and still there: Depending on whether the variable provided is a leaf you might get the terminal variable or the subtree. > This commit should not break any existing scripts. Would the -a assumption break anything? If it doesn't, I feel it adds similar comfort like the netstat behaviour does in case of interactive sessions. virtually yours 82D1 9B9C 01DC 4FB4 D7B4 61BE 3F49 4F77 72DE DA76 Gerhard Sittig true | mail -s "get gpg key" Gerhard.Sittig@gmx.net -- If you don't understand or are scared by any of the above ask your parents or an adult to help you. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message