[tex-k] kpsewhich, TEXINPUTS, -expand-var, and -progname

Julian Gilbey J.D.Gilbey@qmw.ac.uk
Mon, 2 Apr 2001 00:08:58 +0100

On Sun, Apr 01, 2001 at 02:53:47PM -0400, Tom Kacvinsky wrote:
> I am in the process of setting up some shell scripts wherby I customize search
> paths by setting the environment TEXINPUTS (I'm using tcsh).  The way I am
> customizing TEXINPUTS is by appending `:' to a `:' separated list of paths.  For
> example:
>     setenv TEXINPUTS /foo//:/bar//:
> What I would then like to see is how TEXINPUTS looks when latex, tex, pdftex,
> et. al. are invoked.  I am trying to do this by using kpsewhich:
>    kpsewhich -progname=tex -expand-var='$TEXINPUTS'
>    kpsewhich -progname=latex -expand-var='$TEXINPUTS'

The following do what you want:

   kpsewhich -progname=tex -show-path=tex
   kpsewhich -progname=latex -show-path=tex



         Julian Gilbey, Dept of Maths, Queen Mary, Univ. of London
       Debian GNU/Linux Developer,  see http://people.debian.org/~jdg
  Donate free food to the world's hungry: see http://www.thehungersite.com/