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 1QJJIV-0005Ik-QK for garchives@archives.gentoo.org; Mon, 09 May 2011 05:46:24 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6112AE032F; Mon, 9 May 2011 05:44:59 +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 0BC41E032F for ; Mon, 9 May 2011 05:44:58 +0000 (UTC) Received: by bwg12 with SMTP id 12so5483436bwg.40 for ; Sun, 08 May 2011 22:44:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=ivIsJ+/6gecHzUhTOH2jGMHfS8rT0iH3kj9xyz1Ubj8=; b=V3p8lzD6nu0dCScZvMCPPj38jq0lBqY/vS0PPHvij9TOx6Sk3mkRSMyAs5T+NbRaoS o/oIhYzPByuKnhP+Qq2KM7898NZPUrXOZNZI+OA7WRkxesjB2kfM7/Ht/UnMoPHJFM4I IZAgm4M6ChfnfFj4C+BkC8snj98DzZ0+oxRrU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=SG/LomGKCy6AawqdbPVKCteeZfuf3eBQibsJOKPolR3qBXdtHEvF5MWTQEbBTrah5V ZaZyPhibO7H4t2XHY8+uSkAwDrui2Zu6/zmIO8BIIcR9B93O9DSiX+gexiD3UaE1+x47 Rfx4sXcN9FcoPAMq04TR3MaoUJ13XcJc5TEHQ= 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.169.130 with SMTP id z2mr2039962bky.137.1304919898051; Sun, 08 May 2011 22:44:58 -0700 (PDT) Received: by 10.204.64.140 with HTTP; Sun, 8 May 2011 22:44:58 -0700 (PDT) Date: Mon, 9 May 2011 13:44:58 +0800 Message-ID: Subject: [gentoo-user] [OT] bash script error From: Xi Shen To: gentoo-user Content-Type: text/plain; charset=UTF-8 X-Archives-Salt: X-Archives-Hash: 10a3a7f8cbf552bc6037f4e103fdcedb 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/