emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/dtache afb2684f38 027/158: Improve dtache-env command


From: ELPA Syncer
Subject: [elpa] externals/dtache afb2684f38 027/158: Improve dtache-env command
Date: Wed, 19 Jan 2022 18:57:41 -0500 (EST)

branch: externals/dtache
commit afb2684f38d545af0b34338feb5ca5e6b66829a1
Author: Niklas Eklund <niklas.eklund@zenseact.com>
Commit: Niklas Eklund <niklas.eklund@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))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]