From abfc620f3a358bbdbdaee8ca1d0e86b387fb11eb Mon Sep 17 00:00:00 2001 From: Tim Wojtulewicz Date: Mon, 9 Jan 2023 16:07:40 -0700 Subject: [PATCH] fixup! Extract subprocess script-building code into separate function, use NamedTemporaryFile --- btest | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/btest b/btest index 37703e9a..a5e61113 100755 --- a/btest +++ b/btest @@ -210,7 +210,7 @@ def ExpandBackticks(origvalue): if sys.platform == 'win32': try: tf, bash_cmd = _build_win_subprocess_cmd_script(cmd, None) - pp = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE) + pp = subprocess.Popen(cmd, stdout=subprocess.PIPE) except OSError as e: error("cannot execute '%s': %s" % (cmd, e)) else: