[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: texi2dvi unexpected behaivoir
From: |
Gavin Smith |
Subject: |
Re: texi2dvi unexpected behaivoir |
Date: |
Fri, 29 Apr 2016 21:00:33 +0100 |
On 29 April 2016 at 11:48, <address@hidden> wrote:
> I traced the script until the following point:
> texi2dvi line 991 in function 'filter_files':
> test -n "$xref_files_new" && echo "$xref_files_new" |
> It seems that the script traps at this point and calls the function
> 'cleanup'. I my case, the string "$xref_files_new" has length zero, so I
> would expect that the command fails.
> On the other hand, a second call to texi2pdf works, if not in clean
> mode. Maybe I am using this helper script in a wrong way, but from the
> description I would expect, that the file above should be complied two
> times by texi2dvi with return value 0.
> If however the function is changed to
>
> filter_files ()
> {
> if [ -n "$xref_files_new" ] ; then
> 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
> fi
> }
>
> (note that just test is replaced by an if-clause), everything works as
> expected for me.
It should have been fixed already. You can get the latest version at
http://ftp.gnu.org/gnu/texinfo/texi2dvi. Discussion here:
http://lists.gnu.org/archive/html/bug-texinfo/2016-02/msg00140.html