Date: Sat, 1 Dec 2012 20:43:16 -0800 From: Garrett Cooper <yanegomi@gmail.com> To: Alfred Perlstein <bright@mu.org> Cc: freebsd-current@freebsd.org Subject: Re: RFC: sysctl -f filename Message-ID: <CAGH67wTVfVVZ_Pvp5UAJXvSwOB9yTGiiaNfE%2B9SnCKa57k3xpw@mail.gmail.com> In-Reply-To: <50BAD872.2070107@mu.org> References: <20121202.015048.1122480556487090170.hrs@allbsd.org> <50BAD796.5050507@mu.org> <50BAD872.2070107@mu.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Dec 1, 2012 at 8:26 PM, Alfred Perlstein <bright@mu.org> wrote: > On 12/1/12 8:22 PM, Alfred Perlstein wrote: >> >> Does sysctl(8) really need to learn to parse files? >> >> Can't rc.d/sysctl be modified to do the fixup? >> >> This regex seems to work: >> val=`echo $val | sed -e "s@ *\"\(.*\)\" *@\1@" -e "s@ *'\(.*\)' *@\1@"` > > > Upon catching up with emails and seeing netbsd's code, I want to say I don't > feel that strongly about this, although I do wonder how the patch handles > trailing whitespace since I wasn't able to test it: > > example: > "kern.foo='bar'...." > replace the "...." with spaces. It trims them. -Garrett
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGH67wTVfVVZ_Pvp5UAJXvSwOB9yTGiiaNfE%2B9SnCKa57k3xpw>