groff
[Top][All Lists]
Advanced

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

Re: evaluation of \w


From: G. Branden Robinson
Subject: Re: evaluation of \w
Date: Tue, 3 Mar 2020 08:02:06 +1100
User-agent: NeoMutt/20180716

At 2020-03-02T11:24:03-0500, Doug McIlroy wrote:
> Why does this input echo "\w'0'"
> .tm \w'0'
> while this input echoes "5000"?
> .nr w \w'0'
> .tm \nw

On my system, it's consistent with (an unpatched) Heirloon troff and
therefore, possibly, with classical troff:

$ ./heirloom/bin/troff -V
Heirloom doctools troff, release 191015
$ ./heirloom/bin/troff
.tm \w'0'
x T ps
x res 72000 1 1
x init
\w'0'
.nr w \w'0'
.tm \nw
5000
x trailer
V0
x stop

Regards,
Branden

Attachment: signature.asc
Description: PGP signature


reply via email to

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