Browse Source

ob-awk: fix bug in 0d000f5

* lisp/ob-awk.el (org-babel-execute:awk): Fix bug introduced by
introduction of `org-babel--get-vars'.
Aaron Ecay 4 years ago
parent
commit
4773baf3a5
1 changed files with 2 additions and 2 deletions
  1. 2 2
      lisp/ob-awk.el

+ 2 - 2
lisp/ob-awk.el

@@ -71,9 +71,9 @@ called by `org-babel-execute-src-block'"
 				"-f" code-file cmd-line)
 			  (mapcar (lambda (pair)
 				    (format "-v %s='%s'"
-					    (cadr pair)
+					    (car pair)
 					    (org-babel-awk-var-to-awk
-					     (cddr pair))))
+					     (cdr pair))))
 				  (org-babel--get-vars params))
 			  (list in-file))
 			 " ")))