groff
[Top][All Lists]
Advanced

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

[Groff] strange if "..."..." behaviour


From: Werner LEMBERG
Subject: [Groff] strange if "..."..." behaviour
Date: Mon, 02 Oct 2000 15:33:24 +0200 (CEST)

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?


    Werner

reply via email to

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