[tex-live] kpsewhich
Nelson H. F. Beebe
beebe at math.utah.edu
Fri Mar 26 17:17:23 CET 2004
I agree with Hans Hagen's sentiments: -expand-var should be followed
by a variable name, not the backslash and quote-protected expansion
thereof that is awkward to type, and nonportable between Unix and
Windows. The program can easily invoke getenv() to get the value of
the named variable. I too would therefore like to see
kpsewhich -expand-var SELFAUTOPARENT
For the book that I'm co-authoring, we developed a script that works
like this:
% pathfind PATH gcc
/usr/local/bin/gcc
% pathfind --all PATH gcc
/usr/local/bin/gcc
/usr/bin/gcc
/usr/local/gnat/bin/gcc
% pathfind TEXFONTS cmr10.tfm cmman.pfb
/usr/local/lib/tex/fonts/cm/tfms/cmr10.tfm
/usr/local/lib/tex/fonts/ps/cmman.pfb
Using the name of the variable, rather than its value, is much
cleaner.
-------------------------------------------------------------------------------
- Nelson H. F. Beebe Tel: +1 801 581 5254 -
- University of Utah FAX: +1 801 581 4148 -
- Department of Mathematics, 110 LCB Internet e-mail: beebe at math.utah.edu -
- 155 S 1400 E RM 233 beebe at acm.org beebe at computer.org -
- Salt Lake City, UT 84112-0090, USA URL: http://www.math.utah.edu/~beebe -
-------------------------------------------------------------------------------
More information about the tex-live
mailing list