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 1QJMS4-0008QE-JE for garchives@archives.gentoo.org; Mon, 09 May 2011 09:08:28 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5E4381C00A; Mon, 9 May 2011 09:01:14 +0000 (UTC) Received: from mail-bw0-f53.google.com (mail-bw0-f53.google.com [209.85.214.53]) by pigeon.gentoo.org (Postfix) with ESMTP id 5582D1C0BF for ; Mon, 9 May 2011 09:00:05 +0000 (UTC) Received: by bwg12 with SMTP id 12so5621891bwg.40 for ; Mon, 09 May 2011 02:00:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=Ho3QkW1mIVIR8w00pXXISBrLkjJiSbHipUig/X6hfpU=; b=vJd6RklYc/vVHLfczqB64+rqsSWhp0xLi/nxpOLOH5/r7zh6hUdSph2CyfXQXmv1Ur wdAoxiNmEXXAweWywECCVailAGnX2lKka4V9tsy61d4Ec1cZU/84qYzE9qZac7BmIyXt 4vSU0W4aQnQtASbs+ZFA7And6xJSa8gBq2X2E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=TsXm/klhxmKLFzdIsFPShwW+SZoeVbAOYeiBzZ6CqZAeb0CH/gQkxAkgpXyet90jD3 W9nz6IxwtuK1MFlczGf+9OaVF9G68A+Xh+uoxV9wezMD8O3tQxJNJhr9/KFsU1MUsjHu EwJqynoywEbu7DW5scR+XpbMVaMZ2c9CCK448= 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.204.36.7 with SMTP id r7mr4308140bkd.2.1304931604291; Mon, 09 May 2011 02:00:04 -0700 (PDT) Received: by 10.204.64.140 with HTTP; Mon, 9 May 2011 02:00:04 -0700 (PDT) In-Reply-To: References: Date: Mon, 9 May 2011 17:00:04 +0800 Message-ID: Subject: Re: [gentoo-user] [OT] bash script error From: Xi Shen To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 X-Archives-Salt: X-Archives-Hash: d1700ea9a81353e27438f1d14241840d 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/