diff --git a/easybuild/tools/run.py b/easybuild/tools/run.py index 78051c9ff3..5bb5d863f4 100644 --- a/easybuild/tools/run.py +++ b/easybuild/tools/run.py @@ -496,7 +496,7 @@ def to_cmd_str(cmd): executable, shell = None, False stderr_handle = subprocess.PIPE if split_stderr else subprocess.STDOUT - stdin_handle = subprocess.PIPE if stdin or qa_patterns else None + stdin_handle = subprocess.PIPE if stdin or qa_patterns else subprocess.DEVNULL log_msg = f"Running {interactive_msg}shell command '{cmd_str}' in {work_dir}" if thread_id: