1 |
if i use -x '', or -x "", it expands to -x. the quotes are removed as |
2 |
they are empty. |
3 |
|
4 |
if i use -x \'\', the expanded quotes are quoted again...resulting too |
5 |
many quotes |
6 |
|
7 |
it is driving me crazy o_O! please help. |
8 |
|
9 |
|
10 |
On Mon, May 9, 2011 at 4:14 PM, Xi Shen <davidshen84@××××××××××.com> wrote: |
11 |
> yes, i use the '-x' option, and i can see the expansion now. and i |
12 |
> found there are too many quotes. |
13 |
> |
14 |
> i tried curl_opts=-x "", does not work. |
15 |
> |
16 |
> |
17 |
> On Mon, May 9, 2011 at 3:52 PM, Kfir Lavi <lavi.kfir@×××××.com> wrote: |
18 |
>> |
19 |
>> |
20 |
>> On Mon, May 9, 2011 at 9:43 AM, Nils Andresen <nils@×××××××××××××.de> wrote: |
21 |
>>> |
22 |
>>> Hi, |
23 |
>>> have you tried "/bin/bash -x your.script.sh" - see what get's expanded ? |
24 |
>>> |
25 |
>>> Nils |
26 |
>>> |
27 |
>>> 2011/5/9 Xi Shen <davidshen84@××××××××××.com> |
28 |
>>>> |
29 |
>>>> I guess there's something wrong with the argument expansion. Just do |
30 |
>>>> not know how to fix it. Please help. |
31 |
>>>> |
32 |
>> You need to change: |
33 |
>> - curl_opts="-x ''" |
34 |
>> + curl_opts=-x "" |
35 |
>> |
36 |
>> Run your program with bash -x as Nils said, and you will see the expansion. |
37 |
>> |
38 |
>> Kfir |
39 |
>> |
40 |
> |
41 |
> |
42 |
> |
43 |
> -- |
44 |
> Best Regards, |
45 |
> Xi Shen (David) |
46 |
> |
47 |
> http://twitter.com/davidshen84/ |
48 |
> |
49 |
|
50 |
|
51 |
|
52 |
-- |
53 |
Best Regards, |
54 |
Xi Shen (David) |
55 |
|
56 |
http://twitter.com/davidshen84/ |