bug-texinfo
[Top][All Lists]
Advanced

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

texi2dvi removes // while resolving TEXINPUTS


From: ilya beilin
Subject: texi2dvi removes // while resolving TEXINPUTS
Date: Thu, 30 Mar 2006 16:25:26 +0200 (MEST)

For TeX path search algorithm, // means recursion, for instance
TEXINPUTS=.// 
means the source files should be searched i  the current directory and 
below.

When texi2dvi resolves relative paths, it uses cd&&pwd, which ignores 
final slashes:

      *)
        abs=`cd "$dir" && pwd` && TEXINPUTS=$TEXINPUTS$path_sep$abs

Example:

$ texi2dvi --version
texi2dvi (GNU Texinfo 4.8) 1.34
$ uname -a
CYGWIN_NT-5.0 hypnos 1.5.19(0.150/4/2) 2006-01-20 13:28 i686 Cygwin
$ TEXINPUTS=texlib//
$ pwd
/home/ilbe/proj
$  bash -x texi2dvi /usr/share/texmf/tex/generic/null/null.tex  
</dev/null 2>&1 | grep TEXINPUTS
+ tex_envvars='BIBINPUTS BSTINPUTS INDEXSTYLE TEXINPUTS'
+ eval 'TEXINPUTS_orig=$TEXINPUTS'
++ TEXINPUTS_orig=texlib//
+ export TEXINPUTS
+ eval 'TEXINPUTS=$common$TEXINPUTS_orig'
++ TEXINPUTS=/home/ilbe/proj:/usr/share/texmf/tex/generic/null:.//
+ export TEXINPUTS
+ TEXINPUTS=/home/ilbe/proj:/usr/share/texmf/tex/generic/null:.//
+ TEXINPUTS=.
+ TEXINPUTS=.:/home/ilbe/proj
+ TEXINPUTS=.:/home/ilbe/proj:/usr/share/texmf/tex/generic/null
+ TEXINPUTS=.:/home/ilbe/proj:/usr/share/texmf/tex/generic/null:
/home/ilbe/proj/texlib
$  
                     
One can see that "texlib//" in TEXINPUTS got translated to 
"/home/ilbe/proj/texlib", 
so the recursion is lost.

Regards


-- 
Ilya Beylin <address@hidden> Stockholm 
home:+46-8-7248948, mob:+46-704-177036




reply via email to

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