bug-m4
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: POSSIBLE_DOC_BUG


From: Eric Blake
Subject: Re: POSSIBLE_DOC_BUG
Date: Fri, 25 Aug 2017 11:03:25 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1

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

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]