Subject: Re: obsoleting sysctl(8)'s -w flag
To: None <tech-userlevel@netbsd.org>
From: David Laight <david@l8s.co.uk>
List: tech-userlevel
Date: 03/05/2002 17:39:05
On Tue, Mar 05, 2002 at 07:50:34PM +0700, Robert Elz wrote:
>     Date:        Mon, 4 Mar 2002 04:36:12 +0100 (MET)
>     From:        Hubert Feyrer <hubert.feyrer@informatik.fh-regensburg.de>
>     Message-ID:  <Pine.GSO.4.21.0203040434140.5246-100000@rfhpc8317>
> 
>   | The patch below changes sysctl(8) to not require the -w flag when setting
>   | a variable. Just "sysctl foo=var" is really enough.  Inspired by FreeBSD.
>   | 
>   | Any objections to commit?
> 
> What happens to sysctl variables with an '=' in their name?
> 
> Oh well, Bill's objection was a better one...
> 
> (I'd actually quite like to see this, it would be a nicer interface,
> but I suspect that the way it is now is much safer).

Maybe confuse people by only requiring the '-w' if stdin
isn't a tty?

	David

-- 
David Laight: david@l8s.co.uk