diff options
author | fpi | 2018-06-20 12:16:58 +0200 |
---|---|---|
committer | fpi | 2020-08-23 18:44:31 +0200 |
commit | 64c06f41c7a249fd1a6f8a8c905846461c310a5d (patch) | |
tree | 08795f71e056e7313fdc9657fa06b1ebd671574a | |
parent | Wraped all babel src blocks in org src blocks (diff) |
Fix: Properly change into directories with spaces
Diffstat (limited to '')
-rw-r--r-- | ob-spice.el | 4 |
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 |