> Can someone explain to me why I get all the paths twice? kpsewhich does not set $engine. The real engines do: TEXFORMATS=.;$TEXMF/web2c/{$engine,}// With an empty $engine, this gives TEXFORMATS=.;$TEXMF/web2c/{,}// Thomas