X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:references :in-reply-to:content-type:content-transfer-encoding :mime-version; q=dns; s=default; b=ALUolf9XIa6fH4Wkzg1BjoJ94CxKQ oHpfkDGLFaDYvd2Vpsa+GcNVv7NaG+4dNcBBGt4XEPnlFZR5KtwwG0swanFXUwYF Ep4MFAMrneUSRSVwf6/o++iahuW5tE4r9PIqWjev/T4LcPYvxIs9zl6w1GVwiQVv DApkx3BQrjx0gE= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:references :in-reply-to:content-type:content-transfer-encoding :mime-version; s=default; bh=EykOc97IabLzdT7kch4Cv8hawzk=; b=mO0 unTanoKEnldwwcXjbdDGRYocRSdxAsRH7RadDrQrs1+YPywz45SfEtmd5uesYSHJ czlJbcyfPelKQvpLF9mdKG/XVZWJKFGIDse4a70WiqcsmEcjmbfiLn9klUWZ41kW mxuHB191jz6hON3XJ7JQHvjSpaao0TtFAhBObdzc= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: emea01-db3-obe.outbound.protection.outlook.com From: Denis Washington To: Achim Gratz , "cygwin AT cygwin DOT com" Subject: RE: GCC / make escaping differences Date: Fri, 13 Mar 2015 11:20:08 +0000 Message-ID: References: In-Reply-To: authentication-results: NexGo.DE; dkim=none (message not signed) header.d=none; x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DB3PR05MB0762;UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DB3PR05MB0892; x-forefront-antispam-report: BMV:1;SFV:NSPM;SFS:(10019020)(6009001)(51704005)(2900100001)(15975445007)(75402003)(54356999)(46102003)(87936001)(77156002)(122556002)(74482002)(2656002)(50986999)(102836002)(92566002)(33656002)(76576001)(2501003)(76176999)(40100003)(107886001)(74316001)(62966003)(86362001)(2950100001)(19580395003)(66066001);DIR:OUT;SFP:1102;SCL:1;SRVR:DB3PR05MB0762;H:DB3PR05MB0763.eurprd05.prod.outlook.com;FPR:;SPF:None;MLV:sfv;LANG:en; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(601004)(5002009)(5005006);SRVR:DB3PR05MB0762;BCL:0;PCL:0;RULEID:;SRVR:DB3PR05MB0762; x-forefront-prvs: 05143A8241 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Mar 2015 11:20:08.4362 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: ad881f14-eaa8-485d-ad61-b28111a91e12 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3PR05MB0762 X-OriginatorOrg: denisw.de X-IsSubscribed: yes Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id t2DBKTDQ005690 Achim Gratz writes: > Denis Washington denisw.de> writes: > > I suspected that this had something to do with the gcc command defined in > the Makefile, which includes > > backslashes to escape quotes in -D values like this: > > > > -DNOKOGIRI_LIBXML2_PATH\=\"/home/.../2.9.2\" > -----------------------------^ > > I'd rather suspect the problem here. Maybe, but in my eyes that wouldn't explain why this is a GCC compilation error at the line where NOKOGIRI_LIBXML2_PATH is expanded, rather than an shell syntax error. Also, \= seems to cause no problem when passed to bash, as explained. FYI, my understanding from looking at Nokogiri's extconf.rb (which generates the Makefile) is that the escaping is the result of calling Ruby's Shellwords#shellescape method [1] on the string '-DNOKOGIRI="/home/.../2.9.2"', so I guess one can assume that the result is valid bourne shell syntax. Regards, Denis [1] http://ruby-doc.org/stdlib-1.9.3/libdoc/shellwords/rdoc/Shellwords.html#method-c-shellescape -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple