branch: externals/dtache commit afb2684f38d545af0b34338feb5ca5e6b66829a1 Author: Niklas Eklund <niklas.ekl...@zenseact.com> Commit: Niklas Eklund <niklas.ekl...@posteo.net>
Improve dtache-env command The shell command used when dtache-env is enabled could be simplified. There was unnecessary bash -c there, which also caused dtache to fail to execute some commands properly. One example was: for i in {0..5}; do echo $i; done Which it didn't capture the output from correctly. --- dtache.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dtache.el b/dtache.el index e6c81d6924..c982d0d553 100644 --- a/dtache.el +++ b/dtache.el @@ -793,8 +793,7 @@ Otherwise use tee to log stdout and stderr individually." (if dtache-env (string-join `(,dtache-env - ,dtache-shell-program "-c" - ,(shell-quote-argument (format "\"%s\"" (dtache--session-command session)))) " ") + ,(shell-quote-argument (dtache--session-command session))) " ") `(,dtache-shell-program "-c" ,(shell-quote-argument (dtache--session-command session))))) (directory (dtache--session-session-directory session)) (file-name (dtache--session-id session))