Re: evaluation of \w

2020-03-02 Thread Marc Chantreux
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

Re: evaluation of \w

2020-03-02 Thread G. Branden Robinson
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 Heirl

Re: evaluation of \w

2020-03-02 Thread Tadziu Hoffmann
> Why does this input echo "\w'0'" > .tm \w'0' > while this input echoes "5000"? > .nr w \w'0' > .tm \nw >From the info file: -- Request: .tm string Send STRING to the standard error output; this is very useful for printing debugging messages among other things. STRING is read

evaluation of \w

2020-03-02 Thread Doug McIlroy
Why does this input echo "\w'0'" .tm \w'0' while this input echoes "5000"? .nr w \w'0' .tm \nw Doug