Follow-up Comment #10, bug #42675 (group groff):

[comment #9 comment #9:]
> [comment #8 comment #8:]
> > .if n \{.CA \}
> > .if n \{.CA \}
> 
> Are those two lines intended to be identical?  In Ingo's original, the first
one has no space between the macro call and the following backslash.

No.  Looks like I managed to screw that up.  Trying again...


$ cat EXPERIMENTS/count-args.roff
.de CA
\\n(.$
..
.if n \{.CA\}
.if n \{.CA \}
.if n \{.CA foo\}
.if n \{.CA foo \}



$ (cd ~/dwb && DWBHOME=. ./bin/nroff count-args.roff | cat -s)
0 0 1 1

$ (cd ~/heirloom && ./bin/nroff count-args.roff | cat -s)
0 0 1 1

$ ~/groff-1.22.3/bin/nroff ./EXPERIMENTS/count-args.roff | cat -s
0 1 1 2

$ /usr/bin/nroff ./EXPERIMENTS/count-args.roff | cat -s
0 1 1 2

$ ~/groff-stable/bin/nroff ./EXPERIMENTS/count-args.roff | cat -s
0 1 1 2

$ ./build/test-groff -T ascii ./EXPERIMENTS/count-args.roff | cat -s
0 1 1 2

PDP-11 simulator V3.8-1
Disabling XQ
@boot
New Boot, known devices are hp ht rk rl rp tm vt 
: rl(0,0)rl2unix
mem = 177856
# Restricted rights: Use, duplication, or disclosure
is subject to restrictions stated in your contract with
Western Electric Company, Inc.
Thu Sep 22 22:15:29 EDT 1988

login: dmr
$ cat > count-args.roff
.de CA
\\n(.$
..
.if n \{.CA\}
.if n \{.CA \}
.if n \{.CA foo\}
.if n \{.CA foo \}
$ nroff count-args.roff | sed -n '/./p'
1 1 1 2


I venture no opinion at this point.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?42675>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/


Reply via email to