I use the following wget foo:
wget -qO - --no-check-certificate --header='Content-Type: text/plain' --header='Accept: text/plain' http://snoop.nsa.gov/snooplist.txt
I want to put the args and stuff in variables and call it up this way:
wget_args="-qO - --no-check-certificate --header='Content-Type: text/plain' --header='Accept: text/plain'"
...but when I call $wget $wget_args $url
the header stuff is never passed correctly because it's losing the ticks around 'Content-Type: text/plain'.
I have tried many variations here, enclosing the whole wget_args in ticks, using anchors (escaping) before each tick, and so on. Rather than illustrating all of my failed attempts can someone show me how this might be handled properly?