[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug in texi2dvi, on Windows/Msys2 it cannot find tex
From: |
Tomas Kalibera |
Subject: |
bug in texi2dvi, on Windows/Msys2 it cannot find tex |
Date: |
Wed, 6 Apr 2022 14:39:30 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 |
Hello,
texi2dvi on Msys2 doesn't find tex, because it incorrectly detects ";"
as path separator (it is ":").
The problem is in the following code. With Msys2, OSTYPE is "msys", but
MSYSTEM is upper-case "MSYS" and uname needs it that way:
# In the case of Msys, uname returns a value derived from MSYSTEM, as
# MSYSTEM is user configurable, it is not so safe to use it to detect
# Msys. It is safer to use OSTYPE, this is why we set MSYSTEM to
# $OSTYPE before calling uname
if test -n "$COMSPEC$ComSpec" \
&& MSYSTEM=$OSTYPE uname | $EGREP -iv 'cygwin|msys' >/dev/null; then
path_sep=";"
else
path_sep=":"
fi
I've reported this with more detail for Msys2
(https://github.com/msys2/MSYS2-packages/issues/2901) but perhaps it is
worth fixing upstream as the code was meant to support MSYS.
As a workaround, R on Windows currently uses "COMSPEC= texi2dvi" but it
would be nice if this could be fixed.
Thanks
Tomas
- bug in texi2dvi, on Windows/Msys2 it cannot find tex,
Tomas Kalibera <=
- Re: bug in texi2dvi, on Windows/Msys2 it cannot find tex, Eli Zaretskii, 2022/04/06
- Re: bug in texi2dvi, on Windows/Msys2 it cannot find tex, Gavin Smith, 2022/04/08
- Re: bug in texi2dvi, on Windows/Msys2 it cannot find tex, Tomas Kalibera, 2022/04/08
- Re: bug in texi2dvi, on Windows/Msys2 it cannot find tex, Gavin Smith, 2022/04/08
- Re: bug in texi2dvi, on Windows/Msys2 it cannot find tex, Tomas Kalibera, 2022/04/08
- Re: bug in texi2dvi, on Windows/Msys2 it cannot find tex, Gavin Smith, 2022/04/08
- Re: bug in texi2dvi, on Windows/Msys2 it cannot find tex, Tomas Kalibera, 2022/04/08
- Re: bug in texi2dvi, on Windows/Msys2 it cannot find tex, Gavin Smith, 2022/04/08
- Re: bug in texi2dvi, on Windows/Msys2 it cannot find tex, Tomas Kalibera, 2022/04/08
- Re: bug in texi2dvi, on Windows/Msys2 it cannot find tex, Gavin Smith, 2022/04/08