ob-awk: safer variable expansion

* lisp/ob-awk.el (org-babel-expand-body:awk): Allow for symbolic
  variable names.
This commit is contained in:
Eric Schulte 2011-08-28 09:03:07 -06:00
parent 590ad72f59
commit f5e09fbd30
1 changed files with 1 additions and 1 deletions

View File

@ -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)