Re: Problem with kpsewhich on a new instal

Max Chernoff <[email protected]> Mon, 18 May 2026 18:23:09 -0600
Newsgroups gmane.comp.tex.live
Message-ID <[email protected]>
Hi Karl,

On Mon, 2026-05-18 at 16:30 -0600, Karl Berry wrote:
> Max -
>
>     Tilde expansion is a shell feature
>
> It's been in kpathsea too (since the beginning; kpathsea/tilde.c). It is
> used in the distributed texmf.cnf for the default value of TEXMFHOME, etc.
> TEXMFHOME = ~/texmf

Yes, I'm aware that "~" works in \input and the kpathsea variables, but
Paulo's report suggests that "~" doesn't currently work in $PATH.

If "~" does in fact work in $PATH as a side effect of the other code,
then that seems fine to me; but if kpathsea doesn't currently support
"~" in $PATH, then I'd argue that we shouldn't add code to make it work,
because no matter what we do with kpathsea, any scripts with
"#!/usr/bin/env ..." still won't expand the "~".

(but I may be completely misunderstanding something here)

Thanks,
-- Max