Skip to content

Commit c1e4a9c

Browse files
authored
Merge pull request #25390 from compnerd/double-double
rth: quote the commandline properly on Windows (NFC)
2 parents 7933a9c + ef1fc19 commit c1e4a9c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

utils/rth

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ VERBOSE = True
2626

2727
def verbose_print_command(command):
2828
if VERBOSE:
29-
print(" ".join(pipes.quote(c) for c in command))
29+
if platform.system() == 'Windows':
30+
print(subprocess.list2cmdline(command))
31+
else:
32+
print(" ".join(pipes.quote(c) for c in command))
3033
sys.stdout.flush()
3134

3235

0 commit comments

Comments
 (0)