[tex-k] kpsewhich exit status
Reinhard Kotucha
reinhard.kotucha at web.de
Fri Jan 5 01:56:14 CET 2007
Hi,
$ kpsewhich --expand-var=\$TEXMFLOCAL; echo $?
/opt/tex/texlive/alpha/texmf-local
0
$ kpsewhich --expand-var=\$NONEXISTENTVAR; echo $?
0
If kpsewhich --expand-var is successful it provides the value of the
variable. If not, it returns an empty string.
In both cases the exit status is 0. It is certainly not important
what kpsewhich writes to stdout if a variable cannot be resolved, but
in this case the exit status should be $\ne 0$. Or am I doing
something wrong?
Regards,
Reinhard
--
----------------------------------------------------------------------------
Reinhard Kotucha Phone: +49-511-4592165
Marschnerstr. 25
D-30167 Hannover mailto:reinhard.kotucha at web.de
----------------------------------------------------------------------------
Microsoft isn't the answer. Microsoft is the question, and the answer is NO.
----------------------------------------------------------------------------
More information about the tex-k
mailing list