Gentoo Archives: gentoo-user

From: Xi Shen <davidshen84@××××××××××.com>
To: gentoo-user <gentoo-user@l.g.o>
Subject: [gentoo-user] [OT] bash script error
Date: Mon, 09 May 2011 05:46:24
Message-Id: BANLkTimXLjGMxitCU4nFtmck9K3VLa5wbg@mail.gmail.com
1 It is not specific to Gentoo. But do not know where to search or post it :)
2
3 My script looks like:
4
5 url="http://mypage"
6 curl_opts="-x ''"
7 curl $url -d \"mydata\" $curl_opts
8
9 If I execute it, I got an error from curl, saying it cannot resolve
10 the proxy ''.
11
12 But If I modify the script to:
13
14 url="http://mypage"
15 curl $url -d \"mydata\" -x ''
16
17 It works fine.
18
19 I guess there's something wrong with the argument expansion. Just do
20 not know how to fix it. Please help.
21
22
23 --
24 Best Regards,
25 Xi Shen (David)
26
27 http://twitter.com/davidshen84/

Replies

Subject Author
Re: [gentoo-user] [OT] bash script error Nils Andresen <nils@×××××××××××××.de>
Re: [gentoo-user] [OT] bash script error Pandu Poluan <pandu@××××××.info>
Re: [gentoo-user] [OT] bash script error BRM <bm_witness@×××××.com>
Re: [gentoo-user] [OT] bash script error Kevin McCarthy <signals@g.o>