Joanna: thanks for this much improved example. I'd always been unhappy
with the existing one (which was more about make than m4) but I don't
(and didn't) know enough m4 to be able to write a better example (and
not have it be misleading, anyway).
Donn
-----Original Message-----
From: Joanna Farley [mailto:yyyyyyyyyyyyy@xxxxxxx]
Sent: Wednesday, April 17, 2002 6:55 AM
To: yyyyyyy@xxxxxxx
Cc: yyyyyyyyyyyyyyy@xxxxxxxxxxxxx
Subject: Re: Defect in XCU m4
There's a typo in the defect report. The file m4input should be m4src.
Joanna
yyyyyyy@xxxxxxx wrote:
>
> If the file \fBm4input\fP contains the lines:
> The value of `VER' is "VER".
> ifdef(`VER', ``VER'' is defined to be VER., VER is not
defined.)
> ifelse(VER, 1, ``VER'' is `VER'.)
> ifelse(VER, 2, ``VER'' is `VER'., ``VER'' is not 2.)
> end
> then the command:
> m4 m4src
> or the command:
> m4 -U VER m4src
> produces the output:
> The value of VER is "VER".
> VER is not defined.
>
> VER is not 2.
> end
>
> The commnd:
> m4 -D VER m4src
> produces the output:
> The value of VER is "".
> VER is defined to be .
>
> VER is not 2.
> end
>
> The command:
> m4 -D VER=1 m4src
> produces the output:
> The value of VER is "1".
> VER is defined to be 1.
> VER is 1.
> VER is not 2.
> end
>
> The command:
> m4 -D VER=2 m4src
> produces the output:
> The value of VER is "2".
> VER is defined to be 2.
>
> VER is 2.
> end
|