1 |
(Again, sorry for top-posting) |
2 |
|
3 |
BTW, there are lots of bash gurus in stackovervlow.com. My handle |
4 |
there is 'pepoluan'. |
5 |
|
6 |
Rgds, |
7 |
|
8 |
|
9 |
On 2011-05-09, Xi Shen <davidshen84@××××××××××.com> wrote: |
10 |
> It is not specific to Gentoo. But do not know where to search or post it :) |
11 |
> |
12 |
> My script looks like: |
13 |
> |
14 |
> url="http://mypage" |
15 |
> curl_opts="-x ''" |
16 |
> curl $url -d \"mydata\" $curl_opts |
17 |
> |
18 |
> If I execute it, I got an error from curl, saying it cannot resolve |
19 |
> the proxy ''. |
20 |
> |
21 |
> But If I modify the script to: |
22 |
> |
23 |
> url="http://mypage" |
24 |
> curl $url -d \"mydata\" -x '' |
25 |
> |
26 |
> It works fine. |
27 |
> |
28 |
> I guess there's something wrong with the argument expansion. Just do |
29 |
> not know how to fix it. Please help. |
30 |
> |
31 |
> |
32 |
> -- |
33 |
> Best Regards, |
34 |
> Xi Shen (David) |
35 |
> |
36 |
> http://twitter.com/davidshen84/ |
37 |
> |
38 |
> |
39 |
|
40 |
|
41 |
-- |
42 |
-- |
43 |
Pandu E Poluan - IT Optimizer |
44 |
My website: http://pandu.poluan.info/ |