groff
[Top][All Lists]
Advanced

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

Re: evaluation of \w


From: Marc Chantreux
Subject: Re: evaluation of \w
Date: Mon, 2 Mar 2020 23:51:50 +0100
User-agent: Mutt/1.10.1 (2018-07-13)

On Tue, Mar 03, 2020 at 08:02:06AM +1100, G. Branden Robinson wrote:
> 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

i don't know if it helps but trying it with the 9base troff

    9/troff 2>&1 >/dev/null <<\.
    .tm \w'0'
    while this input echoes "5000"?
    .nr w \w'0'
    .tm \nw
    .

gives me:

    \w'0'
    50

regards

marc



reply via email to

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