On Mon, May 09, 2011 at 01:44:58PM +0800, Xi Shen wrote: > It is not specific to Gentoo. But do not know where to search or post it :) > > 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 ''. >
While bash arrays probably aren't required for this, the following seems to work OK: curl_opts=(-x "") curl $url -d \"mydata\" "${curl_opts[@]}" But I'm sure there's a quotes-only solution, too. -- Kevin McCarthy <sign...@gentoo.org>