ConTeXt KPSE checking utility
wiki: http://contextgarden.net | mail: ntg-context@ntg.nl | website: http://www.pragma-ade.nl

Command line options

flagvaluedescription
basic
--prognamemandate, set the program name (e.g. pdftex)
--findfilereport the fully qualified path of the given file
--findfilesreport a list of all full names of the given file
--expandpathexpand the given path variable
--expandvarexpand a variable
--expandbracesexpand a complex variable specification
--varvalueshow the value of a variable
--readablefilereport if a file is readable
--filetypeslist all supported formats
additional
--formatformat type
--pathpath variable
--splitsplit result in lines

Examples

mtxrun --script kpse --progname=pdftex --findfile context.mkii
mtxrun --script kpse --progname=pdftex --findfile context.mkii --format=tex
mtxrun --script kpse --progname=pdftex --findfiles context.mkii --path=$TEXINPUTS

mtxrun --script kpse --progname=pdftex --expandpath $TEXMFVAR
mtxrun --script kpse --progname=pdftex --expandpath $TEXINPUTS -- split