[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: m4 changequote bug
From: |
Eric Blake |
Subject: |
Re: m4 changequote bug |
Date: |
Thu, 19 Nov 2009 06:12:38 -0700 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Eric Blake on 11/19/2009 6:06 AM:
> According to Josef Vukovic on 11/18/2009 10:26 PM:
>> Hello,
>
>> I am searching for an old m4 version which have the Bug regarding
>> changequote:
>
>> define(foo,000)
>> changquote(<QUOTE>,<UNQUOTE>)
Typo. You meant changequote.
>> define(baz,defn(<QUOTE>foo<UNQUOTE>))
But even given the typo, you do not have unterminated input.
>
>> should produce the error: m4: End of Input 0: fatal error: EOF in string
By the way, the message you claim should print is definitely from GNU m4
vintage. I did check that at least m4-1.4.4 states EOF in string, but not
exactly in that formatting, while m4-1.4.6 spells it out as "end of file
in string". Also, as a note of portability, POSIX says changequote is
only portable for delimiters up to 5 bytes in length (and, for example,
Solaris m4 does not accept your example).
- --
Don't work too hard, make some time for fun as well!
Eric Blake address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAksFREYACgkQ84KuGfSFAYBu9ACgluAP9s86jR3+JUDrGG1gzZ6g
9lEAoLtsPoxleObAWHjKXq9SRKka8wQc
=r7tZ
-----END PGP SIGNATURE-----