Re: RFC: sysctl -f filename

看板FB_current作者時間12年前 (2013/04/27 12:33), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串11/12 (看更多)
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 _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
文章代碼(AID): #1HUrK4UC (FB_current)
討論串 (同標題文章)
文章代碼(AID): #1HUrK4UC (FB_current)