Re: POSSIBLE_DOC_BUG

Eric Blake <[email protected]>
Newsgroups gmane.comp.gnu.m4.bugs
Organization Red Hat, Inc.
Message-ID <[email protected]>
On 08/25/2017 10:14 AM, 宋增强 wrote:
> I did what the document says and I found the directive "define" didn't work
> for me.
> 
> You see.The doc says I should use doc like " define('twoline','12')

No, the documentation states you should use:

define(`twoline', `12')

(note that the use of `' quoting is very important; using '' is not
properly quoting things)

> ".However,I found I need to use it like " define(twoline,12) "

That "works" for one use only, but fails if you do it two times in a
row.  The first argument of define MUST be quoted, to prevent a second
definition from failing because it is now defining what the macro name
expanded to, rather than re-defining the desired macro.  That point is
also covered in the manual.

> 
> I am not really good at english and unix things.So if anything is
> wrong,please forgive me.^-^!

At this point, I don't see any documentation bug, but rather just a
confusion on your part about what the proper default quoting characters are.

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org
signature.asc (application/pgp-signature, 619 B)
-----BEGIN PGP SIGNATURE-----
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEzBAEBCAAdFiEEccLMIrHEYCkn0vOqp6FrSiUnQ2oFAlmgSk0ACgkQp6FrSiUn
Q2pBKggAm253eqg/fgdDawh3O1UMS+WZIczs3p80ZEPSBHIUYGX2Apun7TbRs0dI
qCRz8KN2FNbicFqN75v83RW/TUuxSP+ecol7XwQ2lZKbPbEs+XVIivTbjJ8g73hV
1dBRBzj+46m4PHOYVkwKHkZg0d8in5PmwsSqTIaLMoTwWdRI8Du84FH17xc9TKeN
8xLIKkHuJDaL547wNMfXyU9YQMXR7z8J9sIQF5c/FyMvWTElQ8tGCYTkZvx5/BmH
evjerVh+qAo6TFT+i4ieQxzgc5/eGHzAtramLjwGNYHHEX0PsSS4C2GLuscwTuII
Sz7CiYzBNdZ610+wUdvcA52FCAAArw==
=pTUZ
-----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.