[issue36245] PCBuild/build.bat errors, probably from space characters in paths

Jess report at bugs.python.org
Thu Mar 14 21:14:39 EDT 2019


Jess <jess at gmail.com> added the comment:

Looks like the brackets are fine even in the bracket case Steve mentioned.

@echo off

if NOT DEFINED ABCDEF (
  echo "all good"
)

if NOT DEFINED ABCDE (
  echo "all good2"
)

set ABCDE=

if NOT DEFINED ABCDE (
  echo "sadness"
)

if [%ABCDE%]==[] (
  echo "all good3"
)

set ABCDE=]

if [%ABCDE%] NEQ [] (
  echo "all good4"
)

set ABCDE="]"

if [%ABCDE%] NEQ [] (
  echo "all good5"
)


>demo.bat
"all good"
"sadness"
"all good3"
"all good4"
"all good5"

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36245>
_______________________________________


More information about the Python-bugs-list mailing list