groff
[Top][All Lists]
Advanced

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

Re: [Groff] what is `.if v' for?


From: Ralph Corderoy
Subject: Re: [Groff] what is `.if v' for?
Date: Wed, 27 Aug 2003 18:50:12 +0100

Hi Dorai,

> The groff doc says `.if v' is always true both in groff and in
> non-groff troff.  Does anyone know what the intent behind this
> always-true conditional is?

Doesn't it always return false?

    for f in 0 1 t n v; do
    >     echo .if $f/true/.fi/end |
    >     tr / '\012' |
    >     groff -Tascii |
    >     grep . |
    >     sed "s/^/$f /"
    > done
    0 end
    1 true
    1 end
    t end
    n true
    n end
    v end

Don't know.  Just guessing.  But perhaps it's true in some other
`troff', e.g. `vtroff'?

Cheers,


Ralph.


reply via email to

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