Deplorable
Occasional Visitor
I am really really really hard pressed to keep this post from being laced with expletive after expletive after expletive I have been at it so long with no success and nothing useful on Google.
pc_insert "bind-address-ipv6" ' "bind-address-ipv4": "$VPNADDR", ' $CONFIG
All I want to do is use this function to replace a line in a config file with the current VPN address. I can't even get to that part because the $VPNADDR WILL NOT process as a variable. It takes it literally and outputs the var name. If I remove the outside quotes and make it instead
pc_insert "bind-address-ipv6" " "bind-address-ipv4": "$VPNADDR", " $CONFIG
It processes the variable but removes crucial items like commas and other double quotes. It won't do both, one or the other. Is shell scripting really this *@&#&@ useless?? Please help, this is so infuriating I'm on the verge of going and stomping on the router I'm working on which would be expensive.
pc_insert "bind-address-ipv6" ' "bind-address-ipv4": "$VPNADDR", ' $CONFIG
All I want to do is use this function to replace a line in a config file with the current VPN address. I can't even get to that part because the $VPNADDR WILL NOT process as a variable. It takes it literally and outputs the var name. If I remove the outside quotes and make it instead
pc_insert "bind-address-ipv6" " "bind-address-ipv4": "$VPNADDR", " $CONFIG
It processes the variable but removes crucial items like commas and other double quotes. It won't do both, one or the other. Is shell scripting really this *@&#&@ useless?? Please help, this is so infuriating I'm on the verge of going and stomping on the router I'm working on which would be expensive.
Last edited: