The arguments passed by exec.Command are not split further than you have
by having them in a slice of strings. There is no shell between the Go
program and the exec'd command.
On Tue, 2013-01-29 at 20:15 -0800, Matt Tesauro wrote:
> //finalCmd := []string{"--insecure", "-include", "-H \"Accept: application/json\"", "
http://www.google.com/"}
>
> // #2 actual version I was testing with
>
> //finalCmd := []string{"--insecure", "--proxy
127.0.0.1:8080", "-include", "-H \"Accept: application/json\"", "
http://www.google.com/"}
>
> // #3 while this one works where I've broken up the --proxy argument into 2 values
>
> finalCmd := []string{"--insecure", "--proxy", "
127.0.0.1:8080", "-include", "-H \"Accept: application/json\"", "
http://www.google.com/"}