Re: [possible bug] kpsewhich gets confused by trailing slash

Thomas Esser <[email protected]> Sun, 30 Oct 2005 18:32:59 +0100
Newsgroups gmane.comp.tex.tetex.general
Message-ID <[email protected]>
> My $HOME env var was set to "/home/thomas/". Running "kpsewhich

Any search path that uses $HOME/something ends up with a
double shash if $HOME ends with a slash. So, what you observe
is the documented behaviour. Read about the special meaning
of double slashes in the kpathsea manual (texdoc kpathsea or
http://tug.org/teTeX/tetex-texmfdist/doc/programs/kpathsea.pdf).

Moral: don't use a trailing slash in $HOME (unless $HOME == / which is
handled as a special case in kpathsea).

Thomas