diff options
author | Karl Berry <karl@freefriends.org> | 2014-07-22 17:36:15 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2014-07-22 17:36:15 +0000 |
commit | cfc3d4f5c13a237b288087ebcbe5834360036bc7 (patch) | |
tree | 966b36c2ab9d2e099ddd8d2f2a02872e2ca444a1 /Build/source/texk/kpathsea/kpsewhich.c | |
parent | 3cc8e68d6b8cfd65f73f070069de1bc171084e9d (diff) |
have kpsewhich --help display (for each format) variable names considered, the original path string, and the final expanded path
git-svn-id: svn://tug.org/texlive/trunk@34693 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/kpathsea/kpsewhich.c')
-rw-r--r-- | Build/source/texk/kpathsea/kpsewhich.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/Build/source/texk/kpathsea/kpsewhich.c b/Build/source/texk/kpathsea/kpsewhich.c index 80787c1e7db..3078fe3086a 100644 --- a/Build/source/texk/kpathsea/kpsewhich.c +++ b/Build/source/texk/kpathsea/kpsewhich.c @@ -462,7 +462,9 @@ help_message (kpathsea kpse, string *argv) puts ("\nRecognized format names and their (abbreviations) and suffixes:"); for (f = 0; f < kpse_last_format; f++) { const_string *ext; - kpathsea_init_format (kpse, (kpse_file_format_type)f); + + const_string envvar_list = + kpathsea_init_format_return_varlist (kpse, (kpse_file_format_type) f); printf ("%s", kpse->format_info[f].type); /* Show abbreviation if we accept one. We repeatedly go through the @@ -494,7 +496,12 @@ help_message (kpathsea kpse, string *argv) fputs (*ext, stdout); } - putchar ('\n'); + printf (" [variables: %s]\n", envvar_list); + + printf (" [original path (from %s) = %s]\n", + kpse->format_info[f].path_source, kpse->format_info[f].raw_path); + printf (" [expanded path = %s]\n", + kpse->format_info[f].path); } exit (0); |