From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QJMjp-0001hV-QF for garchives@archives.gentoo.org; Mon, 09 May 2011 09:26:50 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2AB4A1C00C; Mon, 9 May 2011 09:25:25 +0000 (UTC) Received: from mail-wy0-f181.google.com (mail-wy0-f181.google.com [74.125.82.181]) by pigeon.gentoo.org (Postfix) with ESMTP id B7C451C00C for ; Mon, 9 May 2011 09:25:24 +0000 (UTC) Received: by wyi11 with SMTP id 11so5139081wyi.40 for ; Mon, 09 May 2011 02:25:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=gXNLwADkcQhhootwrZrz72tL+GSffIO2Inw2pr+BpGA=; b=ZNbqFHtKHIFt3MzdjyRUMYXaXU8HF+uF8syCDaIPohFzeKkabALpcouMzOqZN1vFlt WSkCBdKQN+FAwjtTL8wjV8U9w5O9+fDLyJ8RW4EkovTjPHopgzUJ5qolkHlXbiBwUjJ/ o4JXUjdwqKh+0ZEjv7+x30vb/bJQx3UwDHktk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=LEJe+NlUKF1efWt9l33ciaRQTcj5LrBXFaMBfZv05FYXtJH4PEs3iYo38wroj3Xnv6 pBKlGijow99QZ2Li4SByVWdi7SilYwPFLHVwpYHDixGmk2EUPZf5KvwpRQ5J75ety7o1 ax6wlL/5skPubSNfUonMRAfpoQHwJ5Y3zBfRQ= Received: by 10.216.63.130 with SMTP id a2mr2428526wed.61.1304933123085; Mon, 09 May 2011 02:25:23 -0700 (PDT) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.216.162.146 with HTTP; Mon, 9 May 2011 02:25:03 -0700 (PDT) In-Reply-To: References: From: Kfir Lavi Date: Mon, 9 May 2011 12:25:03 +0300 Message-ID: Subject: Re: [gentoo-user] [OT] bash script error To: gentoo-user@lists.gentoo.org Content-Type: multipart/alternative; boundary=000e0cd6710841e7b404a2d46be3 X-Archives-Salt: X-Archives-Hash: b84bbded5270a1f29764f2c8c450419c --000e0cd6710841e7b404a2d46be3 Content-Type: text/plain; charset=UTF-8 On Mon, May 9, 2011 at 12:00 PM, Xi Shen wrote: > i tried that already. not working. i will try the stackoverflow.com. > thanks > > > On Mon, May 9, 2011 at 4:31 PM, Pandu Poluan wrote: > > (Again, sorry for top-posting) > > > > BTW, there are lots of bash gurus in stackovervlow.com. My handle > > there is 'pepoluan'. > > > > Rgds, > > > > > > On 2011-05-09, Xi Shen wrote: > >> It is not specific to Gentoo. But do not know where to search or post it > :) > >> > >> My script looks like: > >> > >> url="http://mypage" > >> curl_opts="-x ''" > >> curl $url -d \"mydata\" $curl_opts > >> > >> If I execute it, I got an error from curl, saying it cannot resolve > >> the proxy ''. > >> > >> But If I modify the script to: > >> > >> url="http://mypage" > >> curl $url -d \"mydata\" -x '' > >> > >> It works fine. > >> > >> I guess there's something wrong with the argument expansion. Just do > >> not know how to fix it. Please help. > >> > >> > >> -- > >> Best Regards, > >> Xi Shen (David) > >> > >> http://twitter.com/davidshen84/ > >> > >> > > > > > > -- > > -- > > Pandu E Poluan - IT Optimizer > > My website: http://pandu.poluan.info/ > > > > > > > > -- > Best Regards, > Xi Shen (David) > > http://twitter.com/davidshen84/ > > I have replied you before. What I have sent you is the solution to your problems. Try to run what I told you. I ran it successfully on my comp. curl_opts=-x "" Kfir --000e0cd6710841e7b404a2d46be3 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On Mon, May 9, 2011 at = 12:00 PM, Xi Shen <davidshen84@googlemail.com> wrote:
i tried that already. not working. i will try the stackoverflow.com. thanks


On Mon, May 9, 2011 at 4:31 PM, Pandu Poluan <pandu@poluan.info> wrote:
> (Again, sorry for top-posting)
>
> BTW, there are lots of bash gurus in stackovervlow.com. My handle
> there is 'pepoluan'.
>
> Rgds,
>
>
> On 2011-05-09, Xi Shen <davidshen84@googlemail.com> wrote:
>> It is not specific to Gentoo. But do not know where to search or p= ost it :)
>>
>> My script looks like:
>>
>> url=3D"http://myp= age"
>> curl_opts=3D"-x ''"
>> curl $url -d \"mydata\" $curl_opts
>>
>> If I execute it, I got an error from curl, saying it cannot resolv= e
>> the proxy ''.
>>
>> But If I modify the script to:
>>
>> url=3D"http://myp= age"
>> curl $url -d \"mydata\" -x ''
>>
>> It works fine.
>>
>> I guess there's something wrong with the argument expansion. J= ust do
>> not know how to fix it. Please help.
>>
>>
>> --
>> Best Regards,
>> Xi Shen (David)
>>
>> http= ://twitter.com/davidshen84/
>>
>>
>
>
> --
> --
> Pandu E Poluan - IT Optimizer
> My website: ht= tp://pandu.poluan.info/
>
>



--
Best Regards,
Xi Shen (David)

http://twitte= r.com/davidshen84/

I have replied you before.
What I have s= ent you is the solution to your problems.
Try to run what I told you. <= br>I ran it successfully on my comp.
curl_opts=3D-x ""

Kfir

--000e0cd6710841e7b404a2d46be3--