Using tlmgr.bat under bash on MS-Windows

Arash Esbati arash at gnu.org
Mon Nov 22 13:19:36 CET 2021


Hi all,

I use bash packaged with Msys2 on MS-Windows.  All .exe file provided by
TeXlive run without problems in a bash shell.  One thing that doesn't
run for obvious reasons is tlmgr.bat, alas, I have to open a cmd box to
update TeXlive.  Here is a one-line wrapper for bash to run tlmgr.bat:

--8<---------------cut here---------------start------------->8---
#!/bin/sh

# This is a small wrapper around tlmgr.bat in order to use it under
# bash from Msys2.  Note the double // for escaping /
cmd.exe //c tlmgr.bat "$@"; exit $?
--8<---------------cut here---------------end--------------->8---

I'm not sure if it makes sense to add this to TeXlive for Windows.  But
maybe it helps others.

Best, Arash


More information about the tex-live mailing list.