Gentoo Archives: gentoo-user

From: Xi Shen <davidshen84@××××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] [OT] bash script error
Date: Mon, 09 May 2011 07:50:08
Message-Id: BANLkTin1S4r-R59NBrwrs3piGVYrV+cuXg@mail.gmail.com
In Reply to: Re: [gentoo-user] [OT] bash script error by Nils Andresen
1 yes, you are right.
2
3 + curl_opts='-x '\'''\'''
4
5 the "-x ''" expands to too many quotes. I tried to replace the
6 double-quotes to single-quotes, but still not working.
7
8 any idea how to fix this?
9
10
11 On Mon, May 9, 2011 at 2:43 PM, Nils Andresen <nils@×××××××××××××.de> wrote:
12 > Hi,
13 > have you tried "/bin/bash -x your.script.sh" - see what get's expanded ?
14 >
15 > Nils
16 >
17 > 2011/5/9 Xi Shen <davidshen84@××××××××××.com>
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
25
26 --
27 Best Regards,
28 Xi Shen (David)
29
30 http://twitter.com/davidshen84/