Re: Setting TEXINPUTS on Windows (MINGW64)

Vincent Goulet via tex-live <[email protected]>
Newsgroups gmane.comp.tex.live
Message-ID <[email protected]>
Ok, it seems I finally found an incantation that works as intended:

export TEXINPUTS="./texmf//;C:/Program Files/R/R-4.5.1/share/texmf//;"

To sum up:

- everything in quotes to hide the semi-colons from the shell;
- identify the drive by C:/ (to make kpsewhich happy) instead of /c/ (as the shell would do).

Makes sense in the end. ;-)

Vincent Goulet
École d'actuariat, Université Laval


> Le 22 août 2025 à 17:23, Vincent Goulet via tex-live <[email protected]> a écrit :
> 
> I tried many things, but the for the life of me I can't get this to work.
> 
> On my macOS system, I have this in my shell configuration to add two paths to the TEXINPUTS variable:
> 
> export TEXINPUTS=./texmf//:/Library/Frameworks/R.framework/Resources/share/texmf//:
> 
> I need to replicate the config on Windows, but really in a Unix shell under Windows, namely MINGW64 (a.k.a. Git Bash or Git SDK). I'm assuming I can follow the standard Unix instructions, so I put this in ~/.profile:
> 
> export TEXINPUTS=./texmf//:"/c/Program Files/R/R-4.5.1/share/texmf"//:
> 
> (Note the need for quotes as the second path contains a space.) Using this, the last / always get stripped:
> 
> $ kpsewhich.exe -var-value TEXINPUTS
> ./texmf//;C:/Program Files/R/R-4.5.1/share/texmf/;
> 
> I tried all sorts of things to no avail: putting the slashes inside the quotes, putting the whole value of the variable in quotes, doubling the slashes (!), escaping them (!!), ...
> 
> Any pointer would be much appreciated.
> 
> Vincent Goulet
> École d'actuariat, Université Laval
> 
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.