I have stumbled on a glitch of sysrc (apparently).
I am trying to set a system variable to a string containing quotes like so:
As you can see, after each call the variable value gets garbled with its previous content.
Am I doing anything wrong? Are quotes admissible within rc.conf values?
I am trying to set a system variable to a string containing quotes like so:
Bash:
# 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 "$rootDir/etc/rc.conf" ssh_tunnel_connection_1="abc \"def\" gah"
ssh_tunnel_connection_1: abc def gahdef gah -> abc def gahdef gahdef gah
# sysrc -f "$rootDir/etc/rc.conf" ssh_tunnel_connection_1="abc \"def\" gah"
ssh_tunnel_connection_1: abc def gahdef gahdef gah -> abc def gahdef gahdef gahdef gah
# sysrc -f "$rootDir/etc/rc.conf" ssh_tunnel_connection_1="abc \"def\" gah"
ssh_tunnel_connection_1: abc def gahdef gahdef gahdef gah -> abc def gahdef gahdef gahdef gahdef gah
Am I doing anything wrong? Are quotes admissible within rc.conf values?