Browse Source

ob-shell: Initialize header arguments for other shell names

* lisp/ob-shell.el (org-babel-shell-initialize) Initialize
  org-babel-default-header-args: for shell names.
stardiviner 1 year ago
parent
commit
dcf1796636
1 changed files with 2 additions and 1 deletions
  1. 2 1
      lisp/ob-shell.el

+ 2 - 1
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")