[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] .if documentation iffy
From: |
Ralph Corderoy |
Subject: |
Re: [Groff] .if documentation iffy |
Date: |
Wed, 27 Aug 2003 23:20:21 +0100 |
Hi Dorai,
> The groff document at Node: if-else says that
>
> .if expr anything
>
> executes ANYTHING if EXPR evaluates to non-zero.
>
> Actually, if EXPR is a negative number, ANYTHING is not evaluated.
> This seems to be Solaris troff behavior too. So I am not sure if it
> is the document or the implementation that is to be corrected.
Ossanna and Kernighan's CSTR 54 says `.if N anything' evaluates
`anything' if N > 0 so the groff's and Solaris troff's behaviour is
correct and the document is incorrect.
Cheers,
Ralph.