Re: m4 changequote bug

Eric Blake <[email protected]>
Newsgroups gmane.comp.gnu.m4.general
Message-ID <[email protected]>
-----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             [email protected]
-----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-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.