From a07a133a06ff8641e8f52ccbdb0c33774d25e2b0 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 24 Dec 2007 01:05:58 +0000 Subject: --subdir implies --all git-svn-id: svn://tug.org/texlive/trunk@5852 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/kpathsea/kpsewhich.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Build/source') diff --git a/Build/source/texk/kpathsea/kpsewhich.c b/Build/source/texk/kpathsea/kpsewhich.c index 01dcd8a89ba..2ef873c3e6a 100644 --- a/Build/source/texk/kpathsea/kpsewhich.c +++ b/Build/source/texk/kpathsea/kpsewhich.c @@ -518,6 +518,12 @@ main P2C(int, argc, string *, argv) puts (value); } + /* --subdir must imply --all, since we filter here after doing the + search, rather than inside the search itself. */ + if (STR_LIST_LENGTH (subdir_paths) > 0) { + show_all = 1; + } + for (; optind < argc; optind++) { unfound += lookup (argv[optind]); } -- cgit v1.2.3