diff options
author | Eric Schulte <schulte.eric@gmail.com> | 2011-08-28 09:03:07 -0600 |
---|---|---|
committer | Eric Schulte <schulte.eric@gmail.com> | 2011-08-28 09:03:19 -0600 |
commit | f5e09fbd304b21adc77a7d4bb0985d4de9236cd2 (patch) | |
tree | 0b9381decb0507e1d6639c07f29ebb9c58154080 | |
parent | 590ad72f5981532a39178f0bae6da8fe4554fa13 (diff) | |
download | org-mode-f5e09fbd304b21adc77a7d4bb0985d4de9236cd2.tar.gz |
ob-awk: safer variable expansion
* lisp/ob-awk.el (org-babel-expand-body:awk): Allow for symbolic
variable names.
-rw-r--r-- | lisp/ob-awk.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/ob-awk.el b/lisp/ob-awk.el index ff5a967..1ba0a35 100644 --- a/lisp/ob-awk.el +++ b/lisp/ob-awk.el @@ -48,7 +48,7 @@ "Expand BODY according to PARAMS, return the expanded body." (dolist (pair (mapcar #'cdr (org-babel-get-header params :var))) (setf body (replace-regexp-in-string - (regexp-quote (concat "$" (car pair))) (cdr pair) body))) + (regexp-quote (format "$%s" (car pair))) (cdr pair) body))) body) (defun org-babel-execute:awk (body params) |