Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 May 2001 20:50:49 +0200
From:      Gerhard Sittig <Gerhard.Sittig@gmx.net>
To:        cvs-all@freebsd.org
Subject:   Re: cvs commit: src/sbin/sysctl sysctl.8 sysctl.c
Message-ID:  <20010528205049.M253@speedy.gsinet>
In-Reply-To: <200105281215.f4SCFkG69481@freefall.freebsd.org>; from des@FreeBSD.org on Mon, May 28, 2001 at 05:15:46AM -0700
References:  <200105281215.f4SCFkG69481@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010528205049.M253>