diff --git a/gc3libs/backends/shellcmd.py b/gc3libs/backends/shellcmd.py index 4a7d4f1b..7e6949d8 100755 --- a/gc3libs/backends/shellcmd.py +++ b/gc3libs/backends/shellcmd.py @@ -1476,7 +1476,7 @@ def _setup_redirection(self, app): stdout_dir = os.path.dirname(app.stdout) if stdout_dir: self.transport.makedirs(posixpath.join(execdir, stdout_dir)) - if app.join: + if app.join or (app.stderr and app.stderr == app.stdout): redirections.append("2>&1") else: if app.stderr is not None: