Dear developers,

after updating to the new version
$ texi2dvi --version
texi2dvi (GNU Texinfo 6.1+dev) 7174

of texi2dvi the paths to all files were screwed up. I traced this
problem up to the function cd_dir(), which should, as far as I can
imagine, update the variables in $path_vars. But the line
---
248 : eval "case \"$$cdd_dir\" in

will append the PID in front of the string 'cdd_dir' and has never a '/'
as iths first character. For this reason any absolute path ${!cdd_dir}
will be prefixed by '/../.. ...' which results in a garbage. Changing to
---
248 : eval "case \"${!cdd_dir}\" in

will detect the absolute path. However, the prefix will be appended to
relative paths, if cd'd into an absolute path. 

To reproduce the problem try to compile a document foo.tex with the
command
$ texi2pdf -D --build-dir=/tmp/bar foo.tex 2>bar

(the output 'bar' is appended to this mail)
Note the absolute path given by '--build-dir='. 

I could fix the problem for me by replacing all relative paths by
absolute ones, but I think you had a reason (DOS?) for the update of
variables instead of prefering absolute paths. 

Yours sincerely

Daniel Gerbet

#  Main program main loop - TeXify each file in turn.
for command_line_filename
do
  verbose "Processing $command_line_filename ..."

  input_file_name_decode

  # `texinfo' or `latex'?
  in_lang=`compute_language "$command_line_filename"`

  # An auxiliary directory used for all the auxiliary tasks involved
  # in compiling this document.
  case $build_dir in
      '' | . ) t2ddir=$out_noext.t2d ;;
      *) # Avoid collisions between multiple occurrences of the same
         # file, so depend on the output path.  Remove leading `./',
         # at least to avoid creating a file starting with `.!', i.e.,
         # an invisible file. The sed expression is fragile if the cwd
         # has active characters.  Transform / into ! so that we don't
         # need `mkdir -p'.  It might be something to reconsider.
         t2ddir=$build_dir/`echo "$out_dir_abs/$out_noext.t2d" |
             $SED "s,^$orig_pwd/,,;s,^\./,,;s,/,!,g"`
  esac
  # Remove it at exit if clean mode.
  trap "cleanup" 0 1 2 15

  ensure_dir "$build_dir" "$t2ddir"

  # Sometimes there are incompatibilities between auxiliary files for
  # DVI and PDF.  The contents can also change whether we work on PDF
  # and/or DVI.  So keep separate spaces for each.
  workdir=$t2ddir/`out_lang_tex`
  ensure_dir "$workdir"

  # _build.  In a tidy build, where the auxiliary files are output.
  if $tidy; then
    work_build=$workdir/build
  else
    work_build=.
  fi

  # _bak.  Copies of the previous auxiliary files (another round is
  # run if they differ from the new ones).
  work_bak=$workdir/bak

  # Make those directories.
  ensure_dir "$work_build" "$work_bak"

  # Decide how to find auxiliary files created by TeX.
  decide_aux_files_method
  
  case $action in
    compile)
      # Compile the document.
      compile
      cleanup
      ;;

    mostly-clean)
      xref_files_new=`generated_files_get`
      mostly_clean
      ;;
  esac
done
+ for command_line_filename in '"$@"'
+ verbose 'Processing foo.tex ...'
+ false
+ input_file_name_decode
+ case $command_line_filename in
+ case $command_line_filename in
+ echo foo.tex
+ LC_ALL=C
+ egrep '^(/|[A-Za-z]:/)'
+ command_line_filename=./foo.tex
+ test -r ./foo.tex
func_dirname "$command_line_filename"
++ func_dirname ./foo.tex
++ dirname ./foo.tex
+ in_dir=.
basename "$command_line_filename"
++ basename ./foo.tex
+ in_base=foo.tex
noext "$in_base"
++ noext foo.tex
++ echo foo.tex
++ sed -e 's/\.[^/.][^/.]*$//'
+ in_noext=foo
+ in_input=./foo.tex
+ test x '!=' x
out_lang_ext
++ out_lang_ext
++ case $out_lang in
++ echo pdf
+ out_name=foo.pdf
func_dirname "$out_name"
++ func_dirname foo.pdf
++ dirname foo.pdf
+ out_dir=.
absolute "$out_dir"
++ absolute .
++ case $1 in
echo "$1" | $SED -n 's,.*[^/]\(/*\)$,\1,p'
+++ echo .
+++ sed -n 's,.*[^/]\(/*\)$,\1,p'
++ absolute_slashes=
func_dirname "$1"
+++ func_dirname .
+++ dirname .
++ absolute_rel=/tmp/foo/.
++ test -d /tmp/foo/.
++ cd /tmp/foo/.
pwd
+++ pwd
basename "$1"
+++ basename .
++ absolute_name=/tmp/foo/.
++ echo /tmp/foo/.
+ out_dir_abs=/tmp/foo/.
basename "$out_name"
++ basename foo.pdf
+ out_base=foo.pdf
noext "$out_base"
++ noext foo.pdf
++ echo foo.pdf
++ sed -e 's/\.[^/.][^/.]*$//'
+ out_noext=foo
compute_language "$command_line_filename"
++ compute_language ./foo.tex
++ test -n ''
++ sed 1q ./foo.tex
++ grep 'input texinfo'
++ case $1 in
++ echo latex
+ in_lang=latex
+ case $build_dir in
echo "$out_dir_abs/$out_noext.t2d" |
             $SED "s,^$orig_pwd/,,;s,^\./,,;s,/,!,g"
++ echo /tmp/foo/./foo.t2d
++ sed 's,^/tmp/foo/,,;s,^\./,,;s,/,!,g'
+ t2ddir=/tmp/bar/foo.t2d
+ trap cleanup 0 1 2 15
+ ensure_dir /tmp/bar /tmp/bar/foo.t2d
+ for dir in '"$@"'
+ test -d /tmp/bar
+ for dir in '"$@"'
+ test -d /tmp/bar/foo.t2d
out_lang_tex
++ out_lang_tex
++ case $out_lang in
++ echo pdf
+ workdir=/tmp/bar/foo.t2d/pdf
+ ensure_dir /tmp/bar/foo.t2d/pdf
+ for dir in '"$@"'
+ test -d /tmp/bar/foo.t2d/pdf
+ mkdir /tmp/bar/foo.t2d/pdf
+ true
+ work_build=/tmp/bar/foo.t2d/pdf/build
+ work_bak=/tmp/bar/foo.t2d/pdf/bak
+ ensure_dir /tmp/bar/foo.t2d/pdf/build /tmp/bar/foo.t2d/pdf/bak
+ for dir in '"$@"'
+ test -d /tmp/bar/foo.t2d/pdf/build
+ mkdir /tmp/bar/foo.t2d/pdf/build
+ for dir in '"$@"'
+ test -d /tmp/bar/foo.t2d/pdf/bak
+ mkdir /tmp/bar/foo.t2d/pdf/bak
+ decide_aux_files_method
+ test -n ''
+ TEXI2DVI_USE_RECORDER=nomaybe
+ case $TEXI2DVI_USE_RECORDER in
+ check_openout_in_log_support
+ verbose 'Checking TeX \openout in log support...'
+ false
+ make_openout_test '' log
+ ensure_dir /tmp/bar/foo.t2d/pdf/check_recorder
+ for dir in '"$@"'
+ test -d /tmp/bar/foo.t2d/pdf/check_recorder
+ mkdir /tmp/bar/foo.t2d/pdf/check_recorder
+ cd_dir /tmp/bar/foo.t2d/pdf/check_recorder
+ cd /tmp/bar/foo.t2d/pdf/check_recorder
echo "$1" | $SED -e 's/[^/\][^/\]*/../g' -e 's/[/\]$//'
++ echo /tmp/bar/foo.t2d/pdf/check_recorder
++ sed -e 's/[^/\][^/\]*/../g' -e 's/[/\]$//'
+ cdd_prefix=/../../../../..
+ for cdd_dir in '$path_vars'
+ eval 'case "17650cdd_dir" in
          [\/]* | ?:[\/]*) ;;  # absolute path - do nothing
          ?*)
             eval "$cdd_dir=$cdd_prefix/\$$cdd_dir" ;;
          esac'
case "17650cdd_dir" in
          [\/]* | ?:[\/]*) ;;  # absolute path - do nothing
          ?*)
             eval "$cdd_dir=$cdd_prefix/\$$cdd_dir" ;;
          esac
++ case "17650cdd_dir" in
++ eval 'work_build=/../../../../../$work_build'
work_build=/../../../../../$work_build
+++ work_build=/../../../../..//tmp/bar/foo.t2d/pdf/build
+ for cdd_dir in '$path_vars'
+ eval 'case "17650cdd_dir" in
          [\/]* | ?:[\/]*) ;;  # absolute path - do nothing
          ?*)
             eval "$cdd_dir=$cdd_prefix/\$$cdd_dir" ;;
          esac'
case "17650cdd_dir" in
          [\/]* | ?:[\/]*) ;;  # absolute path - do nothing
          ?*)
             eval "$cdd_dir=$cdd_prefix/\$$cdd_dir" ;;
          esac
++ case "17650cdd_dir" in
++ eval 'workdir=/../../../../../$workdir'
workdir=/../../../../../$workdir
+++ workdir=/../../../../..//tmp/bar/foo.t2d/pdf
+ for cdd_dir in '$path_vars'
+ eval 'case "17650cdd_dir" in
          [\/]* | ?:[\/]*) ;;  # absolute path - do nothing
          ?*)
             eval "$cdd_dir=$cdd_prefix/\$$cdd_dir" ;;
          esac'
case "17650cdd_dir" in
          [\/]* | ?:[\/]*) ;;  # absolute path - do nothing
          ?*)
             eval "$cdd_dir=$cdd_prefix/\$$cdd_dir" ;;
          esac
++ case "17650cdd_dir" in
++ eval 't2ddir=/../../../../../$t2ddir'
t2ddir=/../../../../../$t2ddir
+++ t2ddir=/../../../../..//tmp/bar/foo.t2d
+ for cdd_dir in '$path_vars'
+ eval 'case "17650cdd_dir" in
          [\/]* | ?:[\/]*) ;;  # absolute path - do nothing
          ?*)
             eval "$cdd_dir=$cdd_prefix/\$$cdd_dir" ;;
          esac'
case "17650cdd_dir" in
          [\/]* | ?:[\/]*) ;;  # absolute path - do nothing
          ?*)
             eval "$cdd_dir=$cdd_prefix/\$$cdd_dir" ;;
          esac
++ case "17650cdd_dir" in
++ eval 'work_bak=/../../../../../$work_bak'
work_bak=/../../../../../$work_bak
+++ work_bak=/../../../../..//tmp/bar/foo.t2d/pdf/bak
+ for cdd_dir in '$path_vars'
+ eval 'case "17650cdd_dir" in
          [\/]* | ?:[\/]*) ;;  # absolute path - do nothing
          ?*)
             eval "$cdd_dir=$cdd_prefix/\$$cdd_dir" ;;
          esac'
case "17650cdd_dir" in
          [\/]* | ?:[\/]*) ;;  # absolute path - do nothing
          ?*)
             eval "$cdd_dir=$cdd_prefix/\$$cdd_dir" ;;
          esac
++ case "17650cdd_dir" in
++ eval 'in_input=/../../../../../$in_input'
in_input=/../../../../../$in_input
+++ in_input=/../../../../.././foo.tex
+ cat
+ recorder_option_maybe=
+ save_batch=false
+ batch=true
+ make_tex_cmd
+ case $in_lang:$latex2html:`out_lang_tex` in
out_lang_tex
++ out_lang_tex
++ case $out_lang in
++ echo pdf
+ tex=pdflatex
+ case $in_lang:$tidy in
+ sed -n 's|^[ ]*\\include{\(.*\)/.*}.*|\1|p' /../../../../.././foo.tex
+ sort -u
+ read d
sed: can't read /../../../../.././foo.tex: No such file or directory
+ tex_cmd=pdflatex
+ true
+ test '' '!=' set
+ tex_help_dir=/../../../../..//tmp/bar/foo.t2d/tex_help
+ ensure_dir /../../../../..//tmp/bar/foo.t2d/tex_help
+ for dir in '"$@"'
+ test -d /../../../../..//tmp/bar/foo.t2d/tex_help
cd "$tex_help_dir" >&6 && $tex --help </dev/null 2>&1 || true
++ cd /../../../../..//tmp/bar/foo.t2d/tex_help
++ pdflatex --help
+ tex_help='Usage: pdftex [OPTION]... [TEXNAME[.tex]] [COMMANDS]
   or: pdftex [OPTION]... \FIRST-LINE
   or: pdftex [OPTION]... &FMT ARGS
  Run pdfTeX on TEXNAME, usually creating TEXNAME.pdf.
  Any remaining COMMANDS are processed as pdfTeX input, after TEXNAME is read.
  If the first line of TEXNAME is %&FMT, and FMT is an existing .fmt file,
  use it.  Else use `NAME.fmt'\'', where NAME is the program invocation name,
  most commonly `pdftex'\''.

  Alternatively, if the first non-option argument begins with a backslash,
  interpret all non-option arguments as a line of pdfTeX input.

  Alternatively, if the first non-option argument begins with a &, the
  next word is taken as the FMT to read, overriding all else.  Any
  remaining arguments are processed as above.

  If no arguments or options are specified, prompt for input.

-draftmode              switch on draft mode (generates no output PDF)
-enc                    enable encTeX extensions such as \mubyte
-etex                   enable e-TeX extensions
[-no]-file-line-error   disable/enable file:line:error style messages
-fmt=FMTNAME            use FMTNAME instead of program name or a %& line
-halt-on-error          stop processing at the first error
-ini                    be pdfinitex, for dumping formats; this is implicitly
                          true if the program name is `pdfinitex'\''
-interaction=STRING     set interaction mode (STRING=batchmode/nonstopmode/
                          scrollmode/errorstopmode)
-ipc                    send DVI output to a socket as well as the usual
                          output file
-ipc-start              as -ipc, and also start the server at the other end
-jobname=STRING         set the job name to STRING
-kpathsea-debug=NUMBER  set path searching debugging flags according to
                          the bits of NUMBER
[-no]-mktex=FMT         disable/enable mktexFMT generation (FMT=tex/tfm/pk)
-mltex                  enable MLTeX extensions such as \charsubdef
-output-comment=STRING  use STRING for DVI file comment instead of date
                          (no effect for PDF)
-output-directory=DIR   use existing DIR as the directory to write files in
-output-format=FORMAT   use FORMAT for job output; FORMAT is `dvi'\'' or 
`pdf'\''
[-no]-parse-first-line  disable/enable parsing of first line of input file
-progname=STRING        set program (and fmt) name to STRING
-recorder               enable filename recorder
[-no]-shell-escape      disable/enable \write18{SHELL COMMAND}
-shell-restricted       enable restricted \write18
-src-specials           insert source specials into the DVI file
-src-specials=WHERE     insert source specials in certain places of
                          the DVI file. WHERE is a comma-separated value
                          list: cr display hbox math par parend vbox
-synctex=NUMBER         generate SyncTeX data for previewers if nonzero
-translate-file=TCXNAME use the TCX file TCXNAME
-8bit                   make all characters printable by default
-help                   display this help and exit
-version                output version information and exit

Email bug reports to [email protected].'
+ case $tex_help in
+ tex_cmd='pdflatex --file-line-error'
+ tex_cmd='pdflatex --file-line-error'
+ test -n ''
+ test -n ''
+ test -n ''
+ true
+ tex_cmd='pdflatex --file-line-error </dev/null '\''\nonstopmode'\'''
+ batch=false
+ tex_cmd='pdflatex --file-line-error </dev/null '\''\nonstopmode'\'' 
'\''\input'\'' ./openout.tex'
+ verbose '/usr/bin/texi2dvi: running pdflatex --file-line-error </dev/null 
'\''\nonstopmode'\'' '\''\input'\'' ./openout.tex ...'
+ false
+ rm -fr openout.log
+ eval 'pdflatex --file-line-error </dev/null '\''\nonstopmode'\'' 
'\''\input'\'' ./openout.tex'
+ test -f openout.log
+ grep '^\\openout..\? *= *`\?dum\.dum'\''\?' openout.log
+ cd_orig
+ cd /
+ cd /tmp/foo
echo "$cdd_prefix" | $SED -e 's/\(.\)/\\\1/g'
++ echo /../../../../..
++ sed -e 's/\(.\)/\\\1/g'
+ cdd_prefix_q='\/\.\.\/\.\.\/\.\.\/\.\.\/\.\.'
+ for cdo_dir in '$path_vars'
+ eval 'work_build=`echo "$work_build" | $SED -e 
'\''s/^\/\.\.\/\.\.\/\.\.\/\.\.\/\.\.\///'\''`'
work_build=`echo "$work_build" | $SED -e 
's/^\/\.\.\/\.\.\/\.\.\/\.\.\/\.\.\///'`
echo "$work_build" | $SED -e 's/^\/\.\.\/\.\.\/\.\.\/\.\.\/\.\.\///'
+++ echo /../../../../..//tmp/bar/foo.t2d/pdf/build
+++ sed -e 's/^\/\.\.\/\.\.\/\.\.\/\.\.\/\.\.\///'
++ work_build=/tmp/bar/foo.t2d/pdf/build
+ for cdo_dir in '$path_vars'
+ eval 'workdir=`echo "$workdir" | $SED -e 
'\''s/^\/\.\.\/\.\.\/\.\.\/\.\.\/\.\.\///'\''`'
workdir=`echo "$workdir" | $SED -e 's/^\/\.\.\/\.\.\/\.\.\/\.\.\/\.\.\///'`
echo "$workdir" | $SED -e 's/^\/\.\.\/\.\.\/\.\.\/\.\.\/\.\.\///'
+++ echo /../../../../..//tmp/bar/foo.t2d/pdf
+++ sed -e 's/^\/\.\.\/\.\.\/\.\.\/\.\.\/\.\.\///'
++ workdir=/tmp/bar/foo.t2d/pdf
+ for cdo_dir in '$path_vars'
+ eval 't2ddir=`echo "$t2ddir" | $SED -e 
'\''s/^\/\.\.\/\.\.\/\.\.\/\.\.\/\.\.\///'\''`'
t2ddir=`echo "$t2ddir" | $SED -e 's/^\/\.\.\/\.\.\/\.\.\/\.\.\/\.\.\///'`
echo "$t2ddir" | $SED -e 's/^\/\.\.\/\.\.\/\.\.\/\.\.\/\.\.\///'
+++ echo /../../../../..//tmp/bar/foo.t2d
+++ sed -e 's/^\/\.\.\/\.\.\/\.\.\/\.\.\/\.\.\///'
++ t2ddir=/tmp/bar/foo.t2d
+ for cdo_dir in '$path_vars'
+ eval 'work_bak=`echo "$work_bak" | $SED -e 
'\''s/^\/\.\.\/\.\.\/\.\.\/\.\.\/\.\.\///'\''`'
work_bak=`echo "$work_bak" | $SED -e 's/^\/\.\.\/\.\.\/\.\.\/\.\.\/\.\.\///'`
echo "$work_bak" | $SED -e 's/^\/\.\.\/\.\.\/\.\.\/\.\.\/\.\.\///'
+++ echo /../../../../..//tmp/bar/foo.t2d/pdf/bak
+++ sed -e 's/^\/\.\.\/\.\.\/\.\.\/\.\.\/\.\.\///'
++ work_bak=/tmp/bar/foo.t2d/pdf/bak
+ for cdo_dir in '$path_vars'
+ eval 'in_input=`echo "$in_input" | $SED -e 
'\''s/^\/\.\.\/\.\.\/\.\.\/\.\.\/\.\.\///'\''`'
in_input=`echo "$in_input" | $SED -e 's/^\/\.\.\/\.\.\/\.\.\/\.\.\/\.\.\///'`
echo "$in_input" | $SED -e 's/^\/\.\.\/\.\.\/\.\.\/\.\.\/\.\.\///'
+++ echo /../../../../.././foo.tex
+++ sed -e 's/^\/\.\.\/\.\.\/\.\.\/\.\.\/\.\.\///'
++ in_input=./foo.tex
+ verbose 'Checking TeX \openout in log support... yes'
+ false
+ return 0
+ set_aux_files_from_log
+ recorder_option_maybe=
+ generated_files_get_method=generated_files_get_from_log
+ case $action in
+ compile
+ common=/tmp/foo:.:
list_infix includes $path_sep
++ list_infix includes :
++ eval set X '$includes'
set X $includes
+++ set X
++ shift
++ save_IFS='   
'
++ IFS=:
++ echo ''
++ IFS='        
'
+ txincludes=
+ test -n ''
+ for var in '$tex_envvars'
+ eval 'val=$common$BIBINPUTS_orig'
val=$common$BIBINPUTS_orig
++ val=/tmp/foo:.:
absolute_filenames "$val"
++ absolute_filenames /tmp/foo:.:
++ af_replace_empty='-e '\''s/^:/EMPTY:/g'\''                     -e 
'\''s/:$/:EMPTY/g'\''                     -e '\''s/::/:EMPTY:/g'\'''
echo "$1" | eval $SED $af_replace_empty
+++ echo /tmp/foo:.:
+++ eval sed -e ''\''s/^:/EMPTY:/g'\''' -e ''\''s/:$/:EMPTY/g'\''' -e 
''\''s/::/:EMPTY:/g'\'''
sed -e 's/^:/EMPTY:/g' -e 's/:$/:EMPTY/g' -e 's/::/:EMPTY:/g'
++++ sed -e 's/^:/EMPTY:/g' -e 's/:$/:EMPTY/g' -e s/::/:EMPTY:/g
++ af_result=/tmp/foo:.:EMPTY
++ save_IFS='   
'
++ IFS=:
++ set x /tmp/foo . EMPTY
++ shift
++ af_result=
++ af_path_sep=
++ for dir in '"$@"'
++ case $dir in
++ test -d /tmp/foo
absolute "$dir"
+++ absolute /tmp/foo
+++ case $1 in
+++ echo /tmp/foo
++ af_result=/tmp/foo
++ af_path_sep=:
++ for dir in '"$@"'
++ case $dir in
++ test -d .
absolute "$dir"
+++ absolute .
+++ case $1 in
echo "$1" | $SED -n 's,.*[^/]\(/*\)$,\1,p'
++++ echo .
++++ sed -n 's,.*[^/]\(/*\)$,\1,p'
+++ absolute_slashes=
func_dirname "$1"
++++ func_dirname .
++++ dirname .
+++ absolute_rel=/tmp/foo/.
+++ test -d /tmp/foo/.
+++ cd /tmp/foo/.
pwd
++++ pwd
basename "$1"
++++ basename .
+++ absolute_name=/tmp/foo/.
+++ echo /tmp/foo/.
++ af_result=/tmp/foo:/tmp/foo/.
++ af_path_sep=:
++ for dir in '"$@"'
++ case $dir in
++ af_result=/tmp/foo:/tmp/foo/.:
++ af_path_sep=:
++ echo /tmp/foo:/tmp/foo/.:
+ val=/tmp/foo:/tmp/foo/.:
+ eval 'BIBINPUTS="/tmp/foo:/tmp/foo/.:"'
BIBINPUTS="/tmp/foo:/tmp/foo/.:"
++ BIBINPUTS=/tmp/foo:/tmp/foo/.:
+ export BIBINPUTS
+ eval verbose '"BIBINPUTS='\''$BIBINPUTS'\''"'
verbose "BIBINPUTS='$BIBINPUTS'"
++ verbose 'BIBINPUTS='\''/tmp/foo:/tmp/foo/.:'\'''
++ false
+ for var in '$tex_envvars'
+ eval 'val=$common$BSTINPUTS_orig'
val=$common$BSTINPUTS_orig
++ val=/tmp/foo:.:
absolute_filenames "$val"
++ absolute_filenames /tmp/foo:.:
++ af_replace_empty='-e '\''s/^:/EMPTY:/g'\''                     -e 
'\''s/:$/:EMPTY/g'\''                     -e '\''s/::/:EMPTY:/g'\'''
echo "$1" | eval $SED $af_replace_empty
+++ echo /tmp/foo:.:
+++ eval sed -e ''\''s/^:/EMPTY:/g'\''' -e ''\''s/:$/:EMPTY/g'\''' -e 
''\''s/::/:EMPTY:/g'\'''
sed -e 's/^:/EMPTY:/g' -e 's/:$/:EMPTY/g' -e 's/::/:EMPTY:/g'
++++ sed -e 's/^:/EMPTY:/g' -e 's/:$/:EMPTY/g' -e s/::/:EMPTY:/g
++ af_result=/tmp/foo:.:EMPTY
++ save_IFS='   
'
++ IFS=:
++ set x /tmp/foo . EMPTY
++ shift
++ af_result=
++ af_path_sep=
++ for dir in '"$@"'
++ case $dir in
++ test -d /tmp/foo
absolute "$dir"
+++ absolute /tmp/foo
+++ case $1 in
+++ echo /tmp/foo
++ af_result=/tmp/foo
++ af_path_sep=:
++ for dir in '"$@"'
++ case $dir in
++ test -d .
absolute "$dir"
+++ absolute .
+++ case $1 in
echo "$1" | $SED -n 's,.*[^/]\(/*\)$,\1,p'
++++ echo .
++++ sed -n 's,.*[^/]\(/*\)$,\1,p'
+++ absolute_slashes=
func_dirname "$1"
++++ func_dirname .
++++ dirname .
+++ absolute_rel=/tmp/foo/.
+++ test -d /tmp/foo/.
+++ cd /tmp/foo/.
pwd
++++ pwd
basename "$1"
++++ basename .
+++ absolute_name=/tmp/foo/.
+++ echo /tmp/foo/.
++ af_result=/tmp/foo:/tmp/foo/.
++ af_path_sep=:
++ for dir in '"$@"'
++ case $dir in
++ af_result=/tmp/foo:/tmp/foo/.:
++ af_path_sep=:
++ echo /tmp/foo:/tmp/foo/.:
+ val=/tmp/foo:/tmp/foo/.:
+ eval 'BSTINPUTS="/tmp/foo:/tmp/foo/.:"'
BSTINPUTS="/tmp/foo:/tmp/foo/.:"
++ BSTINPUTS=/tmp/foo:/tmp/foo/.:
+ export BSTINPUTS
+ eval verbose '"BSTINPUTS='\''$BSTINPUTS'\''"'
verbose "BSTINPUTS='$BSTINPUTS'"
++ verbose 'BSTINPUTS='\''/tmp/foo:/tmp/foo/.:'\'''
++ false
+ for var in '$tex_envvars'
+ eval 'val=$common$DVIPSHEADERS_orig'
val=$common$DVIPSHEADERS_orig
++ val=/tmp/foo:.:
absolute_filenames "$val"
++ absolute_filenames /tmp/foo:.:
++ af_replace_empty='-e '\''s/^:/EMPTY:/g'\''                     -e 
'\''s/:$/:EMPTY/g'\''                     -e '\''s/::/:EMPTY:/g'\'''
echo "$1" | eval $SED $af_replace_empty
+++ echo /tmp/foo:.:
+++ eval sed -e ''\''s/^:/EMPTY:/g'\''' -e ''\''s/:$/:EMPTY/g'\''' -e 
''\''s/::/:EMPTY:/g'\'''
sed -e 's/^:/EMPTY:/g' -e 's/:$/:EMPTY/g' -e 's/::/:EMPTY:/g'
++++ sed -e 's/^:/EMPTY:/g' -e 's/:$/:EMPTY/g' -e s/::/:EMPTY:/g
++ af_result=/tmp/foo:.:EMPTY
++ save_IFS='   
'
++ IFS=:
++ set x /tmp/foo . EMPTY
++ shift
++ af_result=
++ af_path_sep=
++ for dir in '"$@"'
++ case $dir in
++ test -d /tmp/foo
absolute "$dir"
+++ absolute /tmp/foo
+++ case $1 in
+++ echo /tmp/foo
++ af_result=/tmp/foo
++ af_path_sep=:
++ for dir in '"$@"'
++ case $dir in
++ test -d .
absolute "$dir"
+++ absolute .
+++ case $1 in
echo "$1" | $SED -n 's,.*[^/]\(/*\)$,\1,p'
++++ echo .
++++ sed -n 's,.*[^/]\(/*\)$,\1,p'
+++ absolute_slashes=
func_dirname "$1"
++++ func_dirname .
++++ dirname .
+++ absolute_rel=/tmp/foo/.
+++ test -d /tmp/foo/.
+++ cd /tmp/foo/.
pwd
++++ pwd
basename "$1"
++++ basename .
+++ absolute_name=/tmp/foo/.
+++ echo /tmp/foo/.
++ af_result=/tmp/foo:/tmp/foo/.
++ af_path_sep=:
++ for dir in '"$@"'
++ case $dir in
++ af_result=/tmp/foo:/tmp/foo/.:
++ af_path_sep=:
++ echo /tmp/foo:/tmp/foo/.:
+ val=/tmp/foo:/tmp/foo/.:
+ eval 'DVIPSHEADERS="/tmp/foo:/tmp/foo/.:"'
DVIPSHEADERS="/tmp/foo:/tmp/foo/.:"
++ DVIPSHEADERS=/tmp/foo:/tmp/foo/.:
+ export DVIPSHEADERS
+ eval verbose '"DVIPSHEADERS='\''$DVIPSHEADERS'\''"'
verbose "DVIPSHEADERS='$DVIPSHEADERS'"
++ verbose 'DVIPSHEADERS='\''/tmp/foo:/tmp/foo/.:'\'''
++ false
+ for var in '$tex_envvars'
+ eval 'val=$common$INDEXSTYLE_orig'
val=$common$INDEXSTYLE_orig
++ val=/tmp/foo:.:
absolute_filenames "$val"
++ absolute_filenames /tmp/foo:.:
++ af_replace_empty='-e '\''s/^:/EMPTY:/g'\''                     -e 
'\''s/:$/:EMPTY/g'\''                     -e '\''s/::/:EMPTY:/g'\'''
echo "$1" | eval $SED $af_replace_empty
+++ echo /tmp/foo:.:
+++ eval sed -e ''\''s/^:/EMPTY:/g'\''' -e ''\''s/:$/:EMPTY/g'\''' -e 
''\''s/::/:EMPTY:/g'\'''
sed -e 's/^:/EMPTY:/g' -e 's/:$/:EMPTY/g' -e 's/::/:EMPTY:/g'
++++ sed -e 's/^:/EMPTY:/g' -e 's/:$/:EMPTY/g' -e s/::/:EMPTY:/g
++ af_result=/tmp/foo:.:EMPTY
++ save_IFS='   
'
++ IFS=:
++ set x /tmp/foo . EMPTY
++ shift
++ af_result=
++ af_path_sep=
++ for dir in '"$@"'
++ case $dir in
++ test -d /tmp/foo
absolute "$dir"
+++ absolute /tmp/foo
+++ case $1 in
+++ echo /tmp/foo
++ af_result=/tmp/foo
++ af_path_sep=:
++ for dir in '"$@"'
++ case $dir in
++ test -d .
absolute "$dir"
+++ absolute .
+++ case $1 in
echo "$1" | $SED -n 's,.*[^/]\(/*\)$,\1,p'
++++ echo .
++++ sed -n 's,.*[^/]\(/*\)$,\1,p'
+++ absolute_slashes=
func_dirname "$1"
++++ func_dirname .
++++ dirname .
+++ absolute_rel=/tmp/foo/.
+++ test -d /tmp/foo/.
+++ cd /tmp/foo/.
pwd
++++ pwd
basename "$1"
++++ basename .
+++ absolute_name=/tmp/foo/.
+++ echo /tmp/foo/.
++ af_result=/tmp/foo:/tmp/foo/.
++ af_path_sep=:
++ for dir in '"$@"'
++ case $dir in
++ af_result=/tmp/foo:/tmp/foo/.:
++ af_path_sep=:
++ echo /tmp/foo:/tmp/foo/.:
+ val=/tmp/foo:/tmp/foo/.:
+ eval 'INDEXSTYLE="/tmp/foo:/tmp/foo/.:"'
INDEXSTYLE="/tmp/foo:/tmp/foo/.:"
++ INDEXSTYLE=/tmp/foo:/tmp/foo/.:
+ export INDEXSTYLE
+ eval verbose '"INDEXSTYLE='\''$INDEXSTYLE'\''"'
verbose "INDEXSTYLE='$INDEXSTYLE'"
++ verbose 'INDEXSTYLE='\''/tmp/foo:/tmp/foo/.:'\'''
++ false
+ for var in '$tex_envvars'
+ eval 'val=$common$MFINPUTS_orig'
val=$common$MFINPUTS_orig
++ val=/tmp/foo:.:
absolute_filenames "$val"
++ absolute_filenames /tmp/foo:.:
++ af_replace_empty='-e '\''s/^:/EMPTY:/g'\''                     -e 
'\''s/:$/:EMPTY/g'\''                     -e '\''s/::/:EMPTY:/g'\'''
echo "$1" | eval $SED $af_replace_empty
+++ echo /tmp/foo:.:
+++ eval sed -e ''\''s/^:/EMPTY:/g'\''' -e ''\''s/:$/:EMPTY/g'\''' -e 
''\''s/::/:EMPTY:/g'\'''
sed -e 's/^:/EMPTY:/g' -e 's/:$/:EMPTY/g' -e 's/::/:EMPTY:/g'
++++ sed -e 's/^:/EMPTY:/g' -e 's/:$/:EMPTY/g' -e s/::/:EMPTY:/g
++ af_result=/tmp/foo:.:EMPTY
++ save_IFS='   
'
++ IFS=:
++ set x /tmp/foo . EMPTY
++ shift
++ af_result=
++ af_path_sep=
++ for dir in '"$@"'
++ case $dir in
++ test -d /tmp/foo
absolute "$dir"
+++ absolute /tmp/foo
+++ case $1 in
+++ echo /tmp/foo
++ af_result=/tmp/foo
++ af_path_sep=:
++ for dir in '"$@"'
++ case $dir in
++ test -d .
absolute "$dir"
+++ absolute .
+++ case $1 in
echo "$1" | $SED -n 's,.*[^/]\(/*\)$,\1,p'
++++ echo .
++++ sed -n 's,.*[^/]\(/*\)$,\1,p'
+++ absolute_slashes=
func_dirname "$1"
++++ func_dirname .
++++ dirname .
+++ absolute_rel=/tmp/foo/.
+++ test -d /tmp/foo/.
+++ cd /tmp/foo/.
pwd
++++ pwd
basename "$1"
++++ basename .
+++ absolute_name=/tmp/foo/.
+++ echo /tmp/foo/.
++ af_result=/tmp/foo:/tmp/foo/.
++ af_path_sep=:
++ for dir in '"$@"'
++ case $dir in
++ af_result=/tmp/foo:/tmp/foo/.:
++ af_path_sep=:
++ echo /tmp/foo:/tmp/foo/.:
+ val=/tmp/foo:/tmp/foo/.:
+ eval 'MFINPUTS="/tmp/foo:/tmp/foo/.:"'
MFINPUTS="/tmp/foo:/tmp/foo/.:"
++ MFINPUTS=/tmp/foo:/tmp/foo/.:
+ export MFINPUTS
+ eval verbose '"MFINPUTS='\''$MFINPUTS'\''"'
verbose "MFINPUTS='$MFINPUTS'"
++ verbose 'MFINPUTS='\''/tmp/foo:/tmp/foo/.:'\'''
++ false
+ for var in '$tex_envvars'
+ eval 'val=$common$MPINPUTS_orig'
val=$common$MPINPUTS_orig
++ val=/tmp/foo:.:
absolute_filenames "$val"
++ absolute_filenames /tmp/foo:.:
++ af_replace_empty='-e '\''s/^:/EMPTY:/g'\''                     -e 
'\''s/:$/:EMPTY/g'\''                     -e '\''s/::/:EMPTY:/g'\'''
echo "$1" | eval $SED $af_replace_empty
+++ echo /tmp/foo:.:
+++ eval sed -e ''\''s/^:/EMPTY:/g'\''' -e ''\''s/:$/:EMPTY/g'\''' -e 
''\''s/::/:EMPTY:/g'\'''
sed -e 's/^:/EMPTY:/g' -e 's/:$/:EMPTY/g' -e 's/::/:EMPTY:/g'
++++ sed -e 's/^:/EMPTY:/g' -e 's/:$/:EMPTY/g' -e s/::/:EMPTY:/g
++ af_result=/tmp/foo:.:EMPTY
++ save_IFS='   
'
++ IFS=:
++ set x /tmp/foo . EMPTY
++ shift
++ af_result=
++ af_path_sep=
++ for dir in '"$@"'
++ case $dir in
++ test -d /tmp/foo
absolute "$dir"
+++ absolute /tmp/foo
+++ case $1 in
+++ echo /tmp/foo
++ af_result=/tmp/foo
++ af_path_sep=:
++ for dir in '"$@"'
++ case $dir in
++ test -d .
absolute "$dir"
+++ absolute .
+++ case $1 in
echo "$1" | $SED -n 's,.*[^/]\(/*\)$,\1,p'
++++ echo .
++++ sed -n 's,.*[^/]\(/*\)$,\1,p'
+++ absolute_slashes=
func_dirname "$1"
++++ func_dirname .
++++ dirname .
+++ absolute_rel=/tmp/foo/.
+++ test -d /tmp/foo/.
+++ cd /tmp/foo/.
pwd
++++ pwd
basename "$1"
++++ basename .
+++ absolute_name=/tmp/foo/.
+++ echo /tmp/foo/.
++ af_result=/tmp/foo:/tmp/foo/.
++ af_path_sep=:
++ for dir in '"$@"'
++ case $dir in
++ af_result=/tmp/foo:/tmp/foo/.:
++ af_path_sep=:
++ echo /tmp/foo:/tmp/foo/.:
+ val=/tmp/foo:/tmp/foo/.:
+ eval 'MPINPUTS="/tmp/foo:/tmp/foo/.:"'
MPINPUTS="/tmp/foo:/tmp/foo/.:"
++ MPINPUTS=/tmp/foo:/tmp/foo/.:
+ export MPINPUTS
+ eval verbose '"MPINPUTS='\''$MPINPUTS'\''"'
verbose "MPINPUTS='$MPINPUTS'"
++ verbose 'MPINPUTS='\''/tmp/foo:/tmp/foo/.:'\'''
++ false
+ for var in '$tex_envvars'
+ eval 'val=$common$TEXINPUTS_orig'
val=$common$TEXINPUTS_orig
++ val=/tmp/foo:.:
absolute_filenames "$val"
++ absolute_filenames /tmp/foo:.:
++ af_replace_empty='-e '\''s/^:/EMPTY:/g'\''                     -e 
'\''s/:$/:EMPTY/g'\''                     -e '\''s/::/:EMPTY:/g'\'''
echo "$1" | eval $SED $af_replace_empty
+++ echo /tmp/foo:.:
+++ eval sed -e ''\''s/^:/EMPTY:/g'\''' -e ''\''s/:$/:EMPTY/g'\''' -e 
''\''s/::/:EMPTY:/g'\'''
sed -e 's/^:/EMPTY:/g' -e 's/:$/:EMPTY/g' -e 's/::/:EMPTY:/g'
++++ sed -e 's/^:/EMPTY:/g' -e 's/:$/:EMPTY/g' -e s/::/:EMPTY:/g
++ af_result=/tmp/foo:.:EMPTY
++ save_IFS='   
'
++ IFS=:
++ set x /tmp/foo . EMPTY
++ shift
++ af_result=
++ af_path_sep=
++ for dir in '"$@"'
++ case $dir in
++ test -d /tmp/foo
absolute "$dir"
+++ absolute /tmp/foo
+++ case $1 in
+++ echo /tmp/foo
++ af_result=/tmp/foo
++ af_path_sep=:
++ for dir in '"$@"'
++ case $dir in
++ test -d .
absolute "$dir"
+++ absolute .
+++ case $1 in
echo "$1" | $SED -n 's,.*[^/]\(/*\)$,\1,p'
++++ echo .
++++ sed -n 's,.*[^/]\(/*\)$,\1,p'
+++ absolute_slashes=
func_dirname "$1"
++++ func_dirname .
++++ dirname .
+++ absolute_rel=/tmp/foo/.
+++ test -d /tmp/foo/.
+++ cd /tmp/foo/.
pwd
++++ pwd
basename "$1"
++++ basename .
+++ absolute_name=/tmp/foo/.
+++ echo /tmp/foo/.
++ af_result=/tmp/foo:/tmp/foo/.
++ af_path_sep=:
++ for dir in '"$@"'
++ case $dir in
++ af_result=/tmp/foo:/tmp/foo/.:
++ af_path_sep=:
++ echo /tmp/foo:/tmp/foo/.:
+ val=/tmp/foo:/tmp/foo/.:
+ eval 'TEXINPUTS="/tmp/foo:/tmp/foo/.:"'
TEXINPUTS="/tmp/foo:/tmp/foo/.:"
++ TEXINPUTS=/tmp/foo:/tmp/foo/.:
+ export TEXINPUTS
+ eval verbose '"TEXINPUTS='\''$TEXINPUTS'\''"'
verbose "TEXINPUTS='$TEXINPUTS'"
++ verbose 'TEXINPUTS='\''/tmp/foo:/tmp/foo/.:'\'''
++ false
+ for var in '$tex_envvars'
+ eval 'val=$common$TFMFONTS_orig'
val=$common$TFMFONTS_orig
++ val=/tmp/foo:.:
absolute_filenames "$val"
++ absolute_filenames /tmp/foo:.:
++ af_replace_empty='-e '\''s/^:/EMPTY:/g'\''                     -e 
'\''s/:$/:EMPTY/g'\''                     -e '\''s/::/:EMPTY:/g'\'''
echo "$1" | eval $SED $af_replace_empty
+++ echo /tmp/foo:.:
+++ eval sed -e ''\''s/^:/EMPTY:/g'\''' -e ''\''s/:$/:EMPTY/g'\''' -e 
''\''s/::/:EMPTY:/g'\'''
sed -e 's/^:/EMPTY:/g' -e 's/:$/:EMPTY/g' -e 's/::/:EMPTY:/g'
++++ sed -e 's/^:/EMPTY:/g' -e 's/:$/:EMPTY/g' -e s/::/:EMPTY:/g
++ af_result=/tmp/foo:.:EMPTY
++ save_IFS='   
'
++ IFS=:
++ set x /tmp/foo . EMPTY
++ shift
++ af_result=
++ af_path_sep=
++ for dir in '"$@"'
++ case $dir in
++ test -d /tmp/foo
absolute "$dir"
+++ absolute /tmp/foo
+++ case $1 in
+++ echo /tmp/foo
++ af_result=/tmp/foo
++ af_path_sep=:
++ for dir in '"$@"'
++ case $dir in
++ test -d .
absolute "$dir"
+++ absolute .
+++ case $1 in
echo "$1" | $SED -n 's,.*[^/]\(/*\)$,\1,p'
++++ echo .
++++ sed -n 's,.*[^/]\(/*\)$,\1,p'
+++ absolute_slashes=
func_dirname "$1"
++++ func_dirname .
++++ dirname .
+++ absolute_rel=/tmp/foo/.
+++ test -d /tmp/foo/.
+++ cd /tmp/foo/.
pwd
++++ pwd
basename "$1"
++++ basename .
+++ absolute_name=/tmp/foo/.
+++ echo /tmp/foo/.
++ af_result=/tmp/foo:/tmp/foo/.
++ af_path_sep=:
++ for dir in '"$@"'
++ case $dir in
++ af_result=/tmp/foo:/tmp/foo/.:
++ af_path_sep=:
++ echo /tmp/foo:/tmp/foo/.:
+ val=/tmp/foo:/tmp/foo/.:
+ eval 'TFMFONTS="/tmp/foo:/tmp/foo/.:"'
TFMFONTS="/tmp/foo:/tmp/foo/.:"
++ TFMFONTS=/tmp/foo:/tmp/foo/.:
+ export TFMFONTS
+ eval verbose '"TFMFONTS='\''$TFMFONTS'\''"'
verbose "TFMFONTS='$TFMFONTS'"
++ verbose 'TFMFONTS='\''/tmp/foo:/tmp/foo/.:'\'''
++ false
+ run_makeinfo
+ test latex = texinfo
+ return 0
+ insert_commands
+ test -n ''
+ case $in_lang:$latex2html:`out_lang_tex` in
out_lang_tex
++ out_lang_tex
++ case $out_lang in
++ echo pdf
+ run_tex_suite
+ true
+ verbose 'cd /tmp/bar/foo.t2d/pdf/build'
+ false
+ cd_dir /tmp/bar/foo.t2d/pdf/build
+ cd /tmp/bar/foo.t2d/pdf/build
echo "$1" | $SED -e 's/[^/\][^/\]*/../g' -e 's/[/\]$//'
++ echo /tmp/bar/foo.t2d/pdf/build
++ sed -e 's/[^/\][^/\]*/../g' -e 's/[/\]$//'
+ cdd_prefix=/../../../../..
+ for cdd_dir in '$path_vars'
+ eval 'case "17650cdd_dir" in
          [\/]* | ?:[\/]*) ;;  # absolute path - do nothing
          ?*)
             eval "$cdd_dir=$cdd_prefix/\$$cdd_dir" ;;
          esac'
case "17650cdd_dir" in
          [\/]* | ?:[\/]*) ;;  # absolute path - do nothing
          ?*)
             eval "$cdd_dir=$cdd_prefix/\$$cdd_dir" ;;
          esac
++ case "17650cdd_dir" in
++ eval 'work_build=/../../../../../$work_build'
work_build=/../../../../../$work_build
+++ work_build=/../../../../..//tmp/bar/foo.t2d/pdf/build
+ for cdd_dir in '$path_vars'
+ eval 'case "17650cdd_dir" in
          [\/]* | ?:[\/]*) ;;  # absolute path - do nothing
          ?*)
             eval "$cdd_dir=$cdd_prefix/\$$cdd_dir" ;;
          esac'
case "17650cdd_dir" in
          [\/]* | ?:[\/]*) ;;  # absolute path - do nothing
          ?*)
             eval "$cdd_dir=$cdd_prefix/\$$cdd_dir" ;;
          esac
++ case "17650cdd_dir" in
++ eval 'workdir=/../../../../../$workdir'
workdir=/../../../../../$workdir
+++ workdir=/../../../../..//tmp/bar/foo.t2d/pdf
+ for cdd_dir in '$path_vars'
+ eval 'case "17650cdd_dir" in
          [\/]* | ?:[\/]*) ;;  # absolute path - do nothing
          ?*)
             eval "$cdd_dir=$cdd_prefix/\$$cdd_dir" ;;
          esac'
case "17650cdd_dir" in
          [\/]* | ?:[\/]*) ;;  # absolute path - do nothing
          ?*)
             eval "$cdd_dir=$cdd_prefix/\$$cdd_dir" ;;
          esac
++ case "17650cdd_dir" in
++ eval 't2ddir=/../../../../../$t2ddir'
t2ddir=/../../../../../$t2ddir
+++ t2ddir=/../../../../..//tmp/bar/foo.t2d
+ for cdd_dir in '$path_vars'
+ eval 'case "17650cdd_dir" in
          [\/]* | ?:[\/]*) ;;  # absolute path - do nothing
          ?*)
             eval "$cdd_dir=$cdd_prefix/\$$cdd_dir" ;;
          esac'
case "17650cdd_dir" in
          [\/]* | ?:[\/]*) ;;  # absolute path - do nothing
          ?*)
             eval "$cdd_dir=$cdd_prefix/\$$cdd_dir" ;;
          esac
++ case "17650cdd_dir" in
++ eval 'work_bak=/../../../../../$work_bak'
work_bak=/../../../../../$work_bak
+++ work_bak=/../../../../..//tmp/bar/foo.t2d/pdf/bak
+ for cdd_dir in '$path_vars'
+ eval 'case "17650cdd_dir" in
          [\/]* | ?:[\/]*) ;;  # absolute path - do nothing
          ?*)
             eval "$cdd_dir=$cdd_prefix/\$$cdd_dir" ;;
          esac'
case "17650cdd_dir" in
          [\/]* | ?:[\/]*) ;;  # absolute path - do nothing
          ?*)
             eval "$cdd_dir=$cdd_prefix/\$$cdd_dir" ;;
          esac
++ case "17650cdd_dir" in
++ eval 'in_input=/../../../../../$in_input'
in_input=/../../../../../$in_input
+++ in_input=/../../../../.././foo.tex
+ suite_cycle=0
generated_files_get
++ generated_files_get
++ generated_files_get_from_log foo
++ test -f foo.log
++ test generated_files_get_from_log = generated_files_get_from_fls
+ xref_files_new=
+ xref_files_save
+ xref_files_orig=
+ test -n ''
+ :
+ test 0 -eq 7
expr $suite_cycle + 1
++ expr 0 + 1
+ suite_cycle=1
+ verbose 'Cycle 1 for ./foo.tex'
+ false
+ run_core_conversion
+ case $in_lang:$latex2html:`out_lang_tex` in
out_lang_tex
++ out_lang_tex
++ case $out_lang in
++ echo pdf
+ run_tex
+ make_tex_cmd
+ case $in_lang:$latex2html:`out_lang_tex` in
out_lang_tex
++ out_lang_tex
++ case $out_lang in
++ echo pdf
+ tex=pdflatex
+ case $in_lang:$tidy in
+ sed -n 's|^[ ]*\\include{\(.*\)/.*}.*|\1|p' /../../../../.././foo.tex
+ sort -u
+ read d
sed: can't read /../../../../.././foo.tex: No such file or directory
+ tex_cmd=pdflatex
+ true
+ test set '!=' set
+ case $tex_help in
+ tex_cmd='pdflatex --file-line-error'
+ tex_cmd='pdflatex --file-line-error'
+ test -n ''
+ test -n ''
+ test -n ''
+ false
(LC_ALL=C
    if (echo "$in_input" | grep [^a-zA-Z0-9/.]) >/dev/null ; then
      # If the filename has funny characters, change the TeX category codes of 
      # some characters within a group, and use \expandafter to input the file
      # outside of the group.

      # Make > an end group character, as it's unlikely to appear in
      # a filename.
      tex_cmd="$tex_cmd '${escape}bgroup${escape}catcode62=2'"
      # make letter {   }   $  #  ~   ^   &
      for w in      123 125 36 35 126 136 26; do
        # TODO: check if letter actually in filename in order
        # to simplifiy TeX command line.
        tex_cmd="$tex_cmd '${escape}catcode$w=11${escape}relax'"
      done
      # Set \toks0 to "\input FILENAME\relax"
      tex_cmd="$tex_cmd'${escape}toks0${escape}bgroup"
      tex_cmd="$tex_cmd${escape}input $in_input${escape}relax>"
      tex_cmd="$tex_cmd${escape}expandafter${escape}egroup"
      tex_cmd="$tex_cmd${escape}the${escape}toks0${escape}relax'"
    else
      # In the case of a simple filename, just pass the filename
      # with no funny tricks.
      tex_cmd="$tex_cmd '${escape}input' '$in_input'"
    fi
    echo "$tex_cmd")
++ LC_ALL=C
++ echo /../../../../.././foo.tex
++ grep '[^a-zA-Z0-9/.]'
++ tex_cmd='pdflatex --file-line-error '\''\input'\'' 
'\''/../../../../.././foo.tex'\'''
++ echo 'pdflatex --file-line-error '\''\input'\'' 
'\''/../../../../.././foo.tex'\'''
+ tex_cmd='pdflatex --file-line-error '\''\input'\'' 
'\''/../../../../.././foo.tex'\'''
+ verbose '/usr/bin/texi2dvi: Running pdflatex --file-line-error '\''\input'\'' 
'\''/../../../../.././foo.tex'\'' ...'
+ false
+ eval 'pdflatex --file-line-error '\''\input'\'' 
'\''/../../../../.././foo.tex'\'''
pdflatex --file-line-error '\input' '/../../../../.././foo.tex'
++ pdflatex --file-line-error '\input' /../../../../.././foo.tex
+ error 1 'pdflatex exited with bad status, quitting.'
+ error_status=1
+ shift
+ report 'pdflatex exited with bad status, quitting.'
+ for i in '"$@"'
+ echo '/usr/bin/texi2dvi: pdflatex exited with bad status, quitting.'
/usr/bin/texi2dvi: pdflatex exited with bad status, quitting.
+ test 1 '!=' 0
+ exit 1
cleanup
+ cleanup
+ case $clean:$tidy in

Reply via email to