I think you uncovered a bug or something fell through the cracks when
ob-shell.elwas built.
Please submit bug report to org-mode repo.
Below is a temporary workaround
- Execute the missing
org-babel-bash-initiate-sessionfunction definition below:
(defun org-babel-bash-initiate-session (&optional session _params) "Initiate a session named SESSION according to PARAMS." (when (and session (not (string= session "none"))) (save-window-excursion (or (org-babel-comint-buffer-livep session) (progn (shell session) ;; Needed for Emacs 23 since the marker is initially ;; undefined and the filter functions try to use it without ;; checking. (set-marker comint-last-output-start (point)) (get-buffer (current-buffer))))))) Note: I just copied
org-babel-sh-initiate-sessiondefinition from ob-shell.el and changed-sh-to-bash-.
Execute bash
SRCagain with C-c C-c.Use C-c C-v z.
Thank you for asking your question!
The answer code was tested using:
emacs version: GNU Emacs 25.2.1 (x86_64-unknown-cygwin, GTK+ Version 3.22.10)
org version: 9.1.2