Skip to content

Commit a7672c0

Browse files
committed
Followup to fully fix #492
1 parent 652e249 commit a7672c0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

graalpython/lib-python/3/subprocess.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1828,6 +1828,10 @@ def _execute_child(self, args, executable, preexec_fn, close_fds,
18281828
shell = False
18291829
comspec = os.environ.get("COMSPEC", "cmd.exe")
18301830
executable = comspec
1831+
# This very specific replace is for the pattern in distutils.
1832+
# We really ought to finally implement enough of the winapi
1833+
# to use the Windows codepaths...
1834+
args = [arg.replace(" && ", " ^&^& ") for arg in args]
18311835
if len(args) == 1:
18321836
args = [comspec, "/u", "/c", *args]
18331837
else:

0 commit comments

Comments
 (0)