Your message dated Thu, 24 Nov 2005 23:28:29 +0100 (CET)
with message-id <[EMAIL PROTECTED]>
and subject line Bug#340644: m4 outputs quotes if ` is used in the quote string.
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--------------------------------------
Received: (at submit) by bugs.debian.org; 24 Nov 2005 20:00:28 +0000
>From [EMAIL PROTECTED] Thu Nov 24 12:00:28 2005
Return-path: <[EMAIL PROTECTED]>
Received: from zoot.lafn.org ([206.117.18.6])
by spohr.debian.org with esmtp (Exim 4.50)
id 1EfNGS-0005mz-5a
for [EMAIL PROTECTED]; Thu, 24 Nov 2005 12:00:20 -0800
Received: from davespc (o1-dialup-66-81-202-23.rev.o1.com [66.81.202.23])
by zoot.lafn.org (8.13.1/8.13.1) with ESMTP id jAOK09Yi024693
(version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO)
for <[EMAIL PROTECTED]>; Thu, 24 Nov 2005 12:00:13 -0800 (PST)
(envelope-from [EMAIL PROTECTED])
Received: from dave by davespc with local (Exim 4.44)
id 1EfNHG-0000pN-P2
for [EMAIL PROTECTED]; Thu, 24 Nov 2005 12:01:06 -0800
Date: Thu, 24 Nov 2005 12:01:04 -0800
From: David Lawyer <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: m4 outputs quotes if ` is used in the quote string.
Message-ID: <[EMAIL PROTECTED]>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.6+20040907i
X-Virus-Scanned: ClamAV 0.86.2/1194/Thu Nov 24 09:26:07 2005 on zoot.lafn.org
X-Virus-Status: Clean
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level:
X-Spam-Status: No, hits=-7.5 required=4.0 tests=BAYES_00,HAS_PACKAGE,
RCVD_IN_SORBS autolearn=no version=2.60-bugs.debian.org_2005_01_02
Package: m4
Version: 1.4.2
m4 outputs quotes if ` is used in the quote string. For example:
m4_define(SERIAL_ )m4_dnl
m4_changequote(`","')m4_dnl
m4_ifdef( MODEM_ ,
`"Modem selected"')
m4_ifdef( SERIAL_ ,
`"Serial selected"')
The above gives the following output from m4 --prefix-builtins my_file:
`"Serial selected"'
It should output without any quotes like this:
Serial selected
The following quote string pairs also output with quotes like above:
`" "'
`[ ]'
"` '"
The following pairs give the error message: ... ERROR EOF in string
`$ `%
`` ^^
`% "^
`ab %"
Using a number of pairs (non alpha-numberic) without any ` worked OK.
PS: I wrote the above years ago but don't think I submitted it.
David Lawyer
---------------------------------------
Received: (at 340644-done) by bugs.debian.org; 24 Nov 2005 22:31:42 +0000
>From [EMAIL PROTECTED] Thu Nov 24 14:31:42 2005
Return-path: <[EMAIL PROTECTED]>
Received: from pizarro.unex.es ([158.49.8.2] ident=postfix)
by spohr.debian.org with esmtp (Exim 4.50)
id 1EfPcz-0007lp-J2
for [EMAIL PROTECTED]; Thu, 24 Nov 2005 14:31:42 -0800
Received: from localhost (almendralejo.unex.es [158.49.8.199])
by pizarro.unex.es (Postfix/MJ-1.08) with ESMTP id BEEBED25A4;
Thu, 24 Nov 2005 23:31:38 +0100 (CET)
Received: from pizarro.unex.es ([158.49.8.2])
by localhost (emilio [158.49.17.20]) (amavisd-new, port 10024)
with ESMTP id 25027-10; Thu, 24 Nov 2005 23:34:17 +0100 (CET)
Received: from guadiana.unex.es (guadiana.unex.es [158.49.17.23])
by pizarro.unex.es (Postfix/MJ-1.08) with ESMTP id 6CFE6D25A1;
Thu, 24 Nov 2005 23:31:37 +0100 (CET)
Received: from cantor.unex.es ([158.49.18.105])
by guadiana.unex.es with esmtp (Exim 3.35 #1 (Debian))
id 1EfPcu-0005mN-00; Thu, 24 Nov 2005 23:31:36 +0100
Date: Thu, 24 Nov 2005 23:28:29 +0100 (CET)
From: Santiago Vila <[EMAIL PROTECTED]>
To: David Lawyer <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
Subject: Re: Bug#340644: m4 outputs quotes if ` is used in the quote string.
In-Reply-To: <[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at unex.es
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level:
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER
autolearn=no version=2.60-bugs.debian.org_2005_01_02
On Thu, 24 Nov 2005, David Lawyer wrote:
> Package: m4
> Version: 1.4.2
>
> m4 outputs quotes if ` is used in the quote string. For example:
>
> m4_define(SERIAL_ )m4_dnl
> m4_changequote(`","')m4_dnl
> m4_ifdef( MODEM_ ,
> `"Modem selected"')
> m4_ifdef( SERIAL_ ,
> `"Serial selected"')
>
> The above gives the following output from m4 --prefix-builtins my_file:
>
> `"Serial selected"'
>
> It should output without any quotes like this:
> Serial selected
Speaking of quotes, I'm going to quote the manual :-)
There is no way in `m4' to quote a string containing an unmatched
left quote, except using `changequote' to change the current quotes.
So it seems your changequote command just makes the start-quote delimiter
to be `","' and it does not change the end-quote delimiter at all.
Try this:
define(SERIAL_ )dnl
changequote(`","')dnl
ifdef(MODEM_ ,","Modem selected')
ifdef(SERIAL_ ,","Serial selected')
you will see this:
Serial selected
If you want `" and "' to be the new quote strings, try something like this:
define(SERIAL_ )dnl
changequote(@,%)dnl
changequote(@`"%,@"'%)dnl
ifdef(MODEM_ ,`"Modem selected"')
ifdef(SERIAL_ ,`"Serial selected"')
So it seems this is not a bug after all.
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]