From cce296a3bddf4b072d0d48f92d536e60c0049832 Mon Sep 17 00:00:00 2001 From: poikilos <7557867+poikilos@users.noreply.github.com> Date: Sun, 6 Aug 2023 13:53:36 -0400 Subject: [PATCH] Correct a comment. --- utilities/run-any | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/utilities/run-any b/utilities/run-any index de664c0..26aad75 100755 --- a/utilities/run-any +++ b/utilities/run-any @@ -61,10 +61,8 @@ def show_and_return(cmd, enable_collect=False, cwd=None, shell=False): if cwd is None: cwd = os.getcwd() if shell and not hasattr(cmd, "split"): - # shell cannot correctly utilize a list/tuple (somehow program - # runs but doesn't get the blank argument in - # [path, "--logfile, ""] because debug.txt still gets created) - # so convert to string: + # shell cannot correctly utilize a list/tuple (only first + # element is used!) so join as string to use all arguments: cmd = shlex.join(cmd) proc = subprocess.Popen(cmd, shell=shell, stderr=subprocess.PIPE, stdout=subprocess.PIPE, cwd=cwd)