[tex-k] kpsewhich exit status

Andrew Komornicki komornic at sbcglobal.net
Fri Jan 5 08:31:18 CET 2007


  given this situation, I would concur. sounds like a very 
reasonable request?? 
regards to all, 
Andrew 


At 04:56 PM 1/4/2007, Reinhard Kotucha wrote:
>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