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.
This commit is contained in:
stardiviner 2018-06-04 12:02:55 +08:00 committed by Nicolas Goaziou
parent b3981d6ad0
commit dcf1796636
1 changed files with 2 additions and 1 deletions

View File

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