Discussion:
[tex-k] kpsewhich brace expansion question
Douglas McKenna
2017-12-12 00:06:23 UTC
Permalink
All -

What is the proper response of kpsewhich for the following invocation:

kpsewhich -expand-braces=file{1,2,3,4}{.tex,.pdf}

I would have thought it would be a single string containing

file1.tex:file2.tex:file3.tex:file4.tex:file1.pdf:file2.pdf:file3.pdf:file4.pdf

or similar, but I'm getting just a simple

file4.pdf

as the answer, which is the final element of what I expected.

kpsewhich -all -expand-braces=file{1,2,3,4}{.tex,.pdf}

doesn't change anything, which I think makes sense, since the -all option doesn't apply to expansion tests.

I'm using the 2014 version of kpsewhich on an older Mac OS system. Is this a bug that was fixed later?

If not a bug, then I guess there's something I don't understand about brace expansion or kpsewhich or both.


TIA,

Doug McKenna
Norbert Preining
2017-12-12 00:16:42 UTC
Permalink
Post by Douglas McKenna
kpsewhich -expand-braces=file{1,2,3,4}{.tex,.pdf}
Missing quotes, the {} is expanded by your shell not kpsewhich

kpsewhich -expand-braces='file{1,2,3,4}{.tex,.pdf}'

works

Norbert

--
PREINING Norbert http://www.preining.info
Accelia Inc. + JAIST + TeX Live + Debian Developer
GPG: 0x860CDC13 fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13
Loading...