fixup! ob-shell: Fix multi-line scripts in sessions

This commit is contained in:
Ihor Radchenko 2022-10-22 12:28:31 +08:00
parent 801c93638a
commit a83edd624b
No known key found for this signature in database
GPG Key ID: 6470762A7DA11D8B
1 changed files with 5 additions and 3 deletions

View File

@ -48,9 +48,11 @@ ob-comint.el, which was not previously tested."
(should res)
(should (listp res)))
;; Test multi-line input.
(let ((res (org-babel-execute:sh "if true; then\necho \"yes\"\nfi" '((:session . "yes")))))
(should res)
(should (string= "yes" res))))
(let ((result (org-babel-execute:sh
"if true \n then \n echo yes \n fi"
'((:session . "yes")))))
(should result)
(should (string= "yes" result))))
; A list of tests using the samples in ob-shell-test.org
(ert-deftest ob-shell/generic-uses-no-arrays ()