>From 4519624de8543205533b89e05d14e308d891f45b Mon Sep 17 00:00:00 2001
From: stardiviner <numbch...@gmail.com>
Date: Mon, 4 Jun 2018 12:02:55 +0800
Subject: [PATCH] ob-shell.el: Initialize header arguments for other shell
 names too

* lisp/ob-shell.el (org-babel-shell-initialize) initialize
  org-babel-default-header-args: for shell names.
---
 lisp/ob-shell.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/ob-shell.el b/lisp/ob-shell.el
index f7c6718c7..29086acd3 100644
--- a/lisp/ob-shell.el
+++ b/lisp/ob-shell.el
@@ -57,7 +57,8 @@ is modified outside the Customize interface."
 	     'org-babel-variable-assignments:shell
 	     ,(format "Return list of %s statements assigning to the block's \
 variables."
-		      name)))))
+		      name)))
+    (eval `(defvar ,(intern (concat "org-babel-default-header-args:" name)) '()))))
 
 (defcustom org-babel-shell-names
   '("sh" "bash" "zsh" "fish" "csh" "ash" "dash" "ksh" "mksh" "posh")
-- 
2.17.1


-- 
[ stardiviner ] don't need to convince with trends.
       Blog: https://stardiviner.github.io/
       IRC(freenode): stardiviner
       GPG: F09F650D7D674819892591401B5DF1C95AE89AC3
      

Reply via email to