From 90bd46a6d5ba55e4848a09d7d4c6e04e8aa9d62e Mon Sep 17 00:00:00 2001 From: Eric Schulte Date: Tue, 23 Nov 2010 09:38:15 -0700 Subject: [PATCH] ob-sh: robustification * lisp/ob-sh.el (org-babel-sh-var-to-sh): Wrap end token of heredoc in single quotes which is the best practice. (org-babel-sh-table-or-results): Use `org-babel-script-escape' for more robust parsing of shell output. --- lisp/ob-sh.el | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/lisp/ob-sh.el b/lisp/ob-sh.el index e86386426..ebfb87006 100644 --- a/lisp/ob-sh.el +++ b/lisp/ob-sh.el @@ -100,7 +100,7 @@ var of the same value." (if (listp el) (mapcar #'deep-string el) (org-babel-sh-var-to-sh el sep)))) - (format "$(cat <