I have stumbled on a glitch of sysrc (apparently).
I am trying to set a system variable to a string containing quotes like so:
# sysrc -f "$rootDir/etc/rc.conf" ssh_tunnel_connection_1="abc \"def\" gah"
ssh_tunnel_connection_1: abc def gah -> abc def gahdef gah
# sysrc -f...
Fun with sysrc. Tested on
tingo@kg-core1$ uname -a
FreeBSD kg-core1.kg4.no 10.3-STABLE FreeBSD 10.3-STABLE #0 r310083: Wed Dec 14 21:00:13 CET 2016
root@kg-core1.kg4.no:/usr/obj/usr/src/sys/GENERIC amd64
Testing commences (yes, spelling errors are intentional)
tingo@kg-core1$ mkdir...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.