> > >> My script looks like:
> > >>
> > >> url="
http://mypage"
> > >> curl_opts="-x ''"
> > >> curl $url -d \"mydata\" $curl_opts
> > >>
> > >> If I execute it, I got an error from curl, saying it cannot resolve
> > >> the proxy ''.
> > >>
> > >> But If I modify the script to:
> > >>
> > >> url="
http://mypage"
> > >> curl $url -d \"mydata\" -x ''
> > >>
> > >> It works fine.
> > >>
> > >> I guess there's something wrong with the argument expansion. Just do
> > >> not know how to fix it. Please help.
Do as you tried first, but add an eval: