From a83edd624b86433978091e2f100a2ddfdca01f57 Mon Sep 17 00:00:00 2001 From: Ihor Radchenko Date: Sat, 22 Oct 2022 12:28:31 +0800 Subject: [PATCH] fixup! ob-shell: Fix multi-line scripts in sessions --- testing/lisp/test-ob-shell.el | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/testing/lisp/test-ob-shell.el b/testing/lisp/test-ob-shell.el index 05c369174..e25a01c6f 100644 --- a/testing/lisp/test-ob-shell.el +++ b/testing/lisp/test-ob-shell.el @@ -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 ()