summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Schulte <schulte.eric@gmail.com>2010-12-13 13:56:03 -0700
committerEric Schulte <schulte.eric@gmail.com>2010-12-13 13:56:03 -0700
commit19a0ca3182f8cf4e9b73e1145bc44b10d495f560 (patch)
tree8ea3e91d6b1d6bf93ac01372e874511f46e39dc2
parente3aeb07a17ee90e8e370caee2f213b7625bd95a1 (diff)
downloadorg-mode-19a0ca3182f8cf4e9b73e1145bc44b10d495f560.tar.gz
ob-sh: Better escaping of variables with spaces.
* lisp/ob-sh.el (org-babel-sh-var-to-sh): Better escaping of variables with spaces.
-rw-r--r--lisp/ob-sh.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/ob-sh.el b/lisp/ob-sh.el
index e153d68..cd5a386 100644
--- a/lisp/ob-sh.el
+++ b/lisp/ob-sh.el
@@ -105,7 +105,7 @@ var of the same value."
(deep-string (if (listp (car var)) var (list var)))
(list :sep (or sep "\t")))))
(if (stringp var)
- (if (string-match "[\n\r]" var)
+ (if (string-match "[ \t\n\r]" var)
(format "$(cat <<BABEL_STRING\n%s\nBABEL_STRING\n)" var)
(format "%s" var))
(format "%S" var))))