[tex-k] ~ expansion in TEXMFLOCAL from Knuth

Thomas Esser te at dbs.uni-hannover.de
Sun Apr 10 13:20:09 CEST 2005


I have found the bug. Interestingly, if one compares TEXMFLOCAL / TEXMFHOME, there
is a difference:

  $ TEXMFHOME='~/sunburn/texmf' kpsewhich cmrfunny.tfm

  $ TEXMFLOCAL='~/sunburn/texmf' kpsewhich cmrfunny.tfm

The difference is the use of the !! prefix in the TEXMF definition:
  TEXMF = {...,$TEXMFHOME,...,!!$TEXMFLOCAL,...}

Finally, I have found that kpse_tilde_expand() in tilde.c does not expand
a tilde in an element such as
because of

  /* If no leading tilde, do nothing.  */
  if (*name != '~') {

So, this code has to be rewritten to take care of the !! prefix.


More information about the tex-k mailing list