[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [Groff] strange if "..."..." behaviour
From: |
Konovalov, Vadim |
Subject: |
RE: [Groff] strange if "..."..." behaviour |
Date: |
Mon, 2 Oct 2000 18:10:33 +0400 |
> Consider the following code snippet:
>
>
> .ds xx \fR|\fP
> .ie "|"\*(xx" \
> . tm true
> .el \
> . tm false
>
>
> Would you expect that the result is `true'? I didn't.
>
> The original troff manual says:
>
> ... if the strings compare identically (including motions and
> character size and font), _anything_ is accepted as input ...
>
> I would interpret this that the comparison is done by a simple
> strcmp(), and not interpreting the strings. Can someone please check
> this with an original AT&T troff?
On SUN, System V Release 4.0 it outputs true for me.
<!ENTITY Vadim REALLIFE "Vadim V.Konovalov, St.Petersburg, Russia">
&Vadim;