bug-groff
[Top][All Lists]
Advanced

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

[bug #61206] [pic] causes stale input filename to get cached


From: G. Branden Robinson
Subject: [bug #61206] [pic] causes stale input filename to get cached
Date: Tue, 28 Sep 2021 00:54:14 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0

Update of bug #61206 (project groff):

                  Status:                    None => In Progress            
             Assigned to:                    None => gbranden               

    _______________________________________________________

Follow-up Comment #1:

Here's a simpler reproducer in raw roff, also demonstrating a fix in
preparation.


$ cat EXPERIMENTS/pic1.roff 
\en(.F is \n(.F
.br
$ ln EXPERIMENTS/pic1.roff EXPERIMENTS/pic2.roff
$ groff -p -T utf8 EXPERIMENTS/pic*roff | cat -s
\n(.F is EXPERIMENTS/pic1.roff
\n(.F is EXPERIMENTS/pic1.roff

$ ./build/test-groff -p -T utf8 EXPERIMENTS/pic*roff | cat -s
\n(.F is EXPERIMENTS/pic1.roff
\n(.F is EXPERIMENTS/pic2.roff



The output of pic is more revealing.


$ pic EXPERIMENTS/pic*.roff
.if !dPS .ds PS
.if !dPE .ds PE
.lf 1 EXPERIMENTS/pic1.roff
\en(.F is \n(.F
.br
.lf 1
\en(.F is \n(.F
.br
$ ./build/pic EXPERIMENTS/pic*.roff
.do if !dPS .ds PS
.do if !dPE .ds PE
.do if !dPF .ds PF
.lf 1 EXPERIMENTS/pic1.roff
\en(.F is \n(.F
.br
.lf 1 EXPERIMENTS/pic2.roff
\en(.F is \n(.F
.br


Observe the arguments to the _second_ `lf` request in each case.




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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