From owner-freebsd-hackers Wed Oct 7 02:02:10 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA15406 for freebsd-hackers-outgoing; Wed, 7 Oct 1998 02:02:10 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from labinfo.iet.unipi.it (labinfo.iet.unipi.it [131.114.9.5]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id CAA15276 for ; Wed, 7 Oct 1998 02:01:25 -0700 (PDT) (envelope-from luigi@labinfo.iet.unipi.it) Received: from localhost (luigi@localhost) by labinfo.iet.unipi.it (8.6.5/8.6.5) id IAA08022; Wed, 7 Oct 1998 08:00:12 +0100 From: Luigi Rizzo Message-Id: <199810070700.IAA08022@labinfo.iet.unipi.it> Subject: Re: sysctl for string arguments ? To: mike@smith.net.au (Mike Smith) Date: Wed, 7 Oct 1998 08:00:12 +0100 (MET) Cc: hackers@FreeBSD.ORG In-Reply-To: <199810061834.LAA00391@dingo.cdrom.com> from "Mike Smith" at Oct 6, 98 11:34:24 am X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > other strings in sysctl args seem not to be R/W (or at least, > > not settable with the "sysctl" command... e.g. kern.hostname and the > > like). > > kern.corefile in kern_sig.c. ok, thanks (i was looking on -stable...) On this subject, it seems that sysctl on 2.2.6 at least does not accept strings containing spaces: sysctl -w kern.hostname=a,b,c works, whereas sysctl -w kern.hostname="a b c" fails. I am not sure who does the parsing of strings removing whitespace, nor if this works on -current luigi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message