if i use -x '', or -x "", it expands to -x. the quotes are removed as they are empty.
if i use -x \'\', the expanded quotes are quoted again...resulting too many quotes it is driving me crazy o_O! please help. On Mon, May 9, 2011 at 4:14 PM, Xi Shen <davidshe...@googlemail.com> wrote: > yes, i use the '-x' option, and i can see the expansion now. and i > found there are too many quotes. > > i tried curl_opts=-x "", does not work. > > > On Mon, May 9, 2011 at 3:52 PM, Kfir Lavi <lavi.k...@gmail.com> wrote: >> >> >> On Mon, May 9, 2011 at 9:43 AM, Nils Andresen <n...@nils-andresen.de> wrote: >>> >>> Hi, >>> have you tried "/bin/bash -x your.script.sh" - see what get's expanded ? >>> >>> Nils >>> >>> 2011/5/9 Xi Shen <davidshe...@googlemail.com> >>>> >>>> I guess there's something wrong with the argument expansion. Just do >>>> not know how to fix it. Please help. >>>> >> You need to change: >> - curl_opts="-x ''" >> + curl_opts=-x "" >> >> Run your program with bash -x as Nils said, and you will see the expansion. >> >> Kfir >> > > > > -- > Best Regards, > Xi Shen (David) > > http://twitter.com/davidshen84/ > -- Best Regards, Xi Shen (David) http://twitter.com/davidshen84/