[tex-k] kpsewhich symlink bug

Jan Nieuwenhuizen janneke@gnu.org
25 Feb 2001 13:12:13 +0100


Hi,

Here's a bug that bit me in lilypond-1.3.131, mostly because of a
badly autogenerated TEXINPUTS path, containing the `magic' `//'.

Greetings,
Jan.

13:02:07 appel ~/tmp$ mkdir -p foo/bar
13:02:17 appel ~/tmp$ cd foo
13:02:17 appel ~/tmp/foo$ ln -s . foo
13:02:17 appel ~/tmp/foo$ kpsewhich --version
kpathsea version 3.3.1
Copyright (C) 1997 K. Berry.
There is NO warranty.  You may redistribute this software
under the terms of the GNU General Public License.
For more information about these matters, see the files named COPYING.
13:02:34 appel ~/tmp/foo$ export TEXINPUTS=.//
13:02:52 appel ~/tmp/foo$ kpsewhich --debug foo bar
^C
13:02:58 appel ~/tmp/foo$ kpsewhich --debug=1 foo bar
kdebug:dir_links(./bar) => 2
kdebug:dir_links(./foo) => 3
kdebug:dir_links(./foo/bar) => 2
kdebug:dir_links(./foo/foo) => 3
kdebug:dir_links(./foo/foo/bar) => 2
kdebug:dir_links(./foo/foo/foo) => 3
kdebug:dir_links(./foo/foo/foo/bar) => 2
kdebug:dir_links(./foo/foo/foo/foo) => 3
kdebug:dir_links(./foo/foo/foo/foo/bar) => 2
kdebug:dir_links(./foo/foo/foo/foo/foo) => 3
kdebug:dir_links(./foo/foo/foo/foo/foo/bar) => 2
kdebug:dir_links(./foo/foo/foo/foo/foo/foo) => 3
kdebug:dir_links(./foo/foo/foo/foo/foo/foo/bar) => 2
^C

-- 
Jan Nieuwenhuizen <janneke@gnu.org> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien       | http://www.lilypond.org