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

Bug#611408: texi2dvi: swallow error messages



On 29.01.11 00:41, Jakub Wilk wrote:

Hi Jakub,

> This part of /usr/bin/texi2dvi
> 
>     if test $? != 0; then
>       cat "$version_test_dir/txiversion.out"
>       cat "$version_test_dir/txiversion.err" >&2
>       error 1 "texinfo.tex appears to be broken, quitting."
>     fi
> 
> is dead code. The whole script is run under "set -e", so if $TEX fails,
> the script will be termined with no error message shown.
> 
I reviewed the issue. W/ current texinfo I tried to provoke some errors.

1. Renamed the TeX compiler to make sure it is not found any more:

hille@sid:~ $ texi2dvi latex2man.texi
You don't have a working TeX binary (tex) installed anywhere in
your PATH, and texi2dvi cannot proceed without one.  If you want to use
this script, you'll need to install TeX (if you don't have it) or change
your PATH or TEX environment variable (if you do).  See the --help
output for more details.

For information about obtaining TeX, please see http://tug.org/texlive,
or do a web search for TeX and your operating system or distro.

On Debian you can install a working TeX system with
  apt-get install texlive

2. Issued a broken texi file:

Loading texinfo [version 2018-01-09.11]: pdf, fonts, markup, glyphs,
page headings, tables, conditionals, indexing, sectioning, toc,
environments,
defuns, macros, cross references, insertions,
(/usr/share/texlive/texmf-dist/tex/generic/epsf/epsf.tex
This is `epsf.tex' v2.7.4 <14 February 2011>
) localization, formatting, and turning on texinfo input format.) [1]
(latex2man) (/home/hille/latex2man.aux)
Runaway argument?
{CSSfile as an argument. CSS (Cascading Style Sheets) allows you to c@ETC.
./latex2man.texi:91: Paragraph ended before @var was complete.
<to be read again>
                   @par
l.91

? s
OK, entering @scrollmode...
[1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12]
Underfull \hbox (badness 10000) in paragraph at lines 958--960
 @textrm a sub-sub-sec-tion ti-tle

Underfull \hbox (badness 10000) in paragraph at lines 958--960
 @textrm to the @textit sub-sub-sec-tion
[13] [14] [15] [16] [17] )
(see the transcript file for additional information)
Output written on latex2man.dvi (18 pages, 33676 bytes).
Transcript written on latex2man.log.
/usr/bin/texi2dvi: etex exited with bad status, quitting.

What else kind of error situations need to be handled in your opinion?

Thanks,
  Hilmar
-- 
sigfault
#206401 http://counter.li.org

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: