Skip to content

Commit ab8ecbc

Browse files
committed
Use '\\' instead of "\\"
No real changes, just use simpler quoting construct which is sufficient (as we don't need to expand any variables) and also happens not to break Vim 8 syntax highlighting in the entire file, unlike double quotes.
1 parent ae0efd3 commit ab8ecbc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

configure.ac

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@ else
622622
PYEPREFIX=`($PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)") 2>/dev/null`
623623
AC_MSG_RESULT($PYEPREFIX)
624624

625-
if test x"$PYOSNAME" = x"nt" -a x"$PYSEPARATOR" = x"\\"; then
625+
if test x"$PYOSNAME" = x"nt" -a x"$PYSEPARATOR" = x'\\'; then
626626
# Windows installations are quite different to posix installations (MinGW path separator is a forward slash)
627627
PYPREFIX=`echo "$PYPREFIX" | sed -e 's,\\\\,/,g'` # Forward slashes are easier to use and even work on Windows most of the time
628628
PYTHON_SO=.pyd
@@ -739,7 +739,7 @@ else
739739
PYVER=0
740740
fi
741741
if test "x$PY3BIN" = xyes; then
742-
if test x"$PYOSNAME" = x"nt" -a x"$PYSEPARATOR" = x"\\" -a $PYVER -ge 3; then
742+
if test x"$PYOSNAME" = x"nt" -a x"$PYSEPARATOR" = x'\\' -a $PYVER -ge 3; then
743743
PYTHON3="$PYTHON"
744744
else
745745
for py_ver in 3 3.9 3.8 3.7 3.6 3.5 3.4 3.3 3.2 ""; do
@@ -774,7 +774,7 @@ else
774774
PYSEPARATOR=`($PYTHON3 -c "import sys, os; sys.stdout.write(os.sep)") 2>/dev/null`
775775
AC_MSG_RESULT($PYSEPARATOR)
776776

777-
if test x"$PY3OSNAME" = x"nt" -a x"$PYSEPARATOR" = x"\\"; then
777+
if test x"$PY3OSNAME" = x"nt" -a x"$PYSEPARATOR" = x'\\'; then
778778
# Windows installations are quite different to posix installations
779779
# There is no python-config to use
780780
AC_MSG_CHECKING(for Python 3.x prefix)

0 commit comments

Comments
 (0)