summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfpi2018-06-20 12:16:58 +0200
committerfpi2020-08-23 18:44:31 +0200
commit64c06f41c7a249fd1a6f8a8c905846461c310a5d (patch)
tree08795f71e056e7313fdc9657fa06b1ebd671574a
parentWraped all babel src blocks in org src blocks (diff)
Fix: Properly change into directories with spaces
Diffstat (limited to '')
-rw-r--r--ob-spice.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/ob-spice.el b/ob-spice.el
index d936ee7..982765e 100644
--- a/ob-spice.el
+++ b/ob-spice.el
@@ -46,9 +46,9 @@ default-directory or DIR if specified."
(session (make-comint sessionname org-babel-spice-command)))
(if (and dir (file-name-absolute-p dir))
;; absolute dir
- (comint-simple-send session (format "cd %s" dir))
+ (comint-simple-send session (format "cd '%s'" dir))
;; relative dir
- (comint-simple-send session (format "cd %s" default-directory)))
+ (comint-simple-send session (format "cd '%s'" default-directory)))
session))
;; helper