On Sat, Dec 1, 2012 at 8:26 PM, Alfred Perlstein <bright_at_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_at_ *\"\(.*\)\" *_at_\1_at_" -e "s_at_ *'\(.*\)' *_at_\1_at_"` > > > 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. -GarrettReceived on Sun Dec 02 2012 - 03:43:23 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:32 UTC