bug-texinfo
[Top][All Lists]
Advanced

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

Re: problem with texi2dvi from texinfo 6.1


From: Vincent Belaïche
Subject: Re: problem with texi2dvi from texinfo 6.1
Date: Wed, 24 Feb 2016 00:15:18 +0100

OK, I got it. The problem is in function filter_files. Unfortunately
when we made the changes to solve the missing \openout in log problem,
we did not make any tests with not any new xref files after the first
run. When this happens (ie variable xref_files_new empty) the function
filter_files crashes and exits the script. I have not really understood
the details why, but the attached patch fixes that.

It would be good to understand exactly what is happening with the bug
because there are similar pieces of coding for instance in

if test -n "$COMSPEC$ComSpec" \
   && MSYSTEM=$OSTYPE uname | $EGREP -iv 'cygwin|msys' >/dev/null; then

which was also changed at the same time.


VBR,
        Vincent.

PS: the attached script toto.sh is an attempt to reproduce the same
    premature exit problem, but I could not achieve that.

>Ooops... it proved out that I made the trial with a quite old texi2dvi
>version. Now I have used a more recent one (not yet checked whether this
>is the latest one) and I could reproduce the problem.
>
>I let you know when I understand why there is one single run.
>
>  Vincent.
>
>>Hello Kurt,
>>
>>I think that this ~ thing is a separate problem. That should be
>>submitted as a tex2dvi bug, I have tried to do that but the bug
>>submission is closed on savannah for texinfo project (??).
>>
>>I have just tried your second test1.tex file, and my texi2dvi does make
>>two runs, here is the log (please note that I am compiling with the
>>--pdf option, I have also made a trial w/o it, and it also made two
>>runs):
>>
>>

Index: texi2dvi

===================================================================

--- texi2dvi    (revision 7030)

+++ texi2dvi    (working copy)

@@ -988,15 +988,16 @@

 #                         that match PREDICATE.
 filter_files ()
 {
-  test -n "$xref_files_new" && echo "$xref_files_new" |
-  # Filter existing files matching the criterion.
-  #
-  while read file; do
-    $1 "$file"
-  done |
-  sort |
-  # Some files are opened several times, e.g., listings.sty's *.vrb.
-  uniq
+  test -n "$xref_files_new" || return 0
+  echo "$xref_files_new" |
+    # Filter existing files matching the criterion.
+    #
+    while read file; do
+      $1 "$file"
+    done |
+    sort |
+    # Some files are opened several times, e.g., listings.sty's *.vrb.
+    uniq
 }
 
 # run_index - Run texindex (or makeindex or texindy) on current index

Attachment: toto.sh
Description: Bourne shell script


reply via email to

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