From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ben Key Newsgroups: gmane.emacs.devel Subject: Re: Supporting parameters that include the = character in configure.bat Date: Mon, 11 Apr 2011 21:41:50 -0500 Message-ID: References: <83lizirrli.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001517588bfa8a423804a0afa3e0 X-Trace: dough.gmane.org 1302576143 12684 80.91.229.12 (12 Apr 2011 02:42:23 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 12 Apr 2011 02:42:23 +0000 (UTC) Cc: Emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 12 04:42:18 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from [140.186.70.17] (helo=lists.gnu.org) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q9TYX-0007ZM-C4 for ged-emacs-devel@m.gmane.org; Tue, 12 Apr 2011 04:42:17 +0200 Original-Received: from localhost ([::1]:39181 helo=lists2.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q9TYW-0002mm-Rl for ged-emacs-devel@m.gmane.org; Mon, 11 Apr 2011 22:42:16 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:51966) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q9TYT-0002mS-ND for Emacs-devel@gnu.org; Mon, 11 Apr 2011 22:42:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q9TYS-00019b-Oh for Emacs-devel@gnu.org; Mon, 11 Apr 2011 22:42:13 -0400 Original-Received: from mail-bw0-f41.google.com ([209.85.214.41]:53203) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q9TYR-00018x-Cs; Mon, 11 Apr 2011 22:42:11 -0400 Original-Received: by bwz17 with SMTP id 17so5845879bwz.0 for ; Mon, 11 Apr 2011 19:42:10 -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:cc:content-type; bh=u/PadIbjJWbEsWuYcBbGA1m/Q8Qhl2biTWiQRNV+6Jo=; b=OPRa1HQndnQsW6ToErqrxrDEYiyZH86ild/MknBB+X1FfhG9BZ/cEPr5mu4prDBGM8 IM98nnTX7wjQJ6kHQPuuKKAURf2uWqypSn5vszWXMv7KspYvPp/tJXWDZGIai045UQDz VztoEiM1+ZlUCSdVeksAcTpm2Z18bQ5ogP79I= 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 :cc:content-type; b=CXTWFYp5I/WrqE8bxlgFcvMaqx2WI7zUhrnzUtDFqonjSRd/vMoEIwQxTYcKeBhefL cJPkiuIBrzOIW6NpntZ5HQ0IwbdrEu+JweJs4J/GwEoaASD+jDWTX1bWtTp6JuWyHN+G SjDCz958OF3OPAyATj+BpLefvXxjx2Ut/2FJc= Original-Received: by 10.204.7.74 with SMTP id c10mr1073864bkc.104.1302576130310; Mon, 11 Apr 2011 19:42:10 -0700 (PDT) Original-Received: by 10.204.118.203 with HTTP; Mon, 11 Apr 2011 19:41:50 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.214.41 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org X-Broken-Reverse-DNS: no host name found for IP address 140.186.70.17 Xref: news.gmane.org gmane.emacs.devel:138412 Archived-At: --001517588bfa8a423804a0afa3e0 Content-Type: text/plain; charset=ISO-8859-1 Hello, I am working on a patch for configure.bat to support using parameters that include the = character. As part of this patch I need to make changes to the nt/INSTALL file. The section that needs to be changed is as follows. Because of limitations of the stock Windows command shell, certain characters (quotes, backslashes and equal signs) can be problematic and should not be used in arguments to configure. That means that forward slashes must be used in paths passed to the compiler and linker via the --cflags and --ldflags options, and that it is currently not possible to pass a macro like -DFOO=BAR (though -DFOO is perfectly valid). The change I am making to configure.bat modifies the parsing of the --cflags and --ldflags options to add support for parameters like -DFOO=BAR as long as the parameter is enclosed in quotes. I need some input on how I should rewrite this section of the document. The part that confuses me is the statement that quotes should not be used in arguments to configure. My technique for supporting parameters that include the = character requires that the parameter be enclosed in quotes. However, this section of nt/INSTALL says quotes are not supported. Perhaps if I had more information on the history of this paragraph, and specifically what the problems with quotes are I would know how to rewrite this paragraph. I appreciate any input you might have to offer. --001517588bfa8a423804a0afa3e0 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello,

I am working on a patch for configure.bat to= support using parameters that include the =3D character.=A0 As part of thi= s patch I need to make changes to the nt/INSTALL file.=A0 The section that = needs to be changed is as follows.

Because of limitations of the stock Windows command shell, certain
c= haracters (quotes, backslashes and equal signs) can be problematic
and s= hould not be used in arguments to configure.=A0 That means that
forward = slashes must be used in paths passed to the compiler and
linker via the --cflags and --ldflags options, and that it is
currently = not possible to pass a macro like -DFOO=3DBAR (though -DFOO
is perfectly= valid).

The change I am making to configure.bat modifies the parsin= g of the
--cflags and --ldflags options to<= font size=3D"4"> add support for parameters like -DFOO=3DBAR as long as the= parameter is enclosed in quotes.=A0 I need some input on how I should rewr= ite this section of the document.=A0 The part that confuses me is the state= ment that quotes should not be used in arguments to configure.=A0 My techni= que for supporting parameters that include the =3D character requires that = the parameter be enclosed in quotes.=A0 However, this section of nt/INSTALL= says quotes are not supported.=A0 Perhaps if I had more information on the= history of this paragraph, and specifically what the problems with quotes = are I would know how to rewrite this paragraph.

I appreciate any input you might have to offer.

--001517588bfa8a423804a0afa3e0--