diff --git a/lisp/ob-eshell.el b/lisp/ob-eshell.el index 95f5777ae..fa19f874a 100644 --- a/lisp/ob-eshell.el +++ b/lisp/ob-eshell.el @@ -97,7 +97,8 @@ The PARAMS are variables assignments." "Convert ob-eshell :var specified variables into Eshell variables assignments." (mapcar (lambda (pair) - (format "(setq %s %S)" (car pair) (cdr pair))) + ;; Use `ignore' to suppress value in the command output. + (format "(ignore (setq %s %S))" (car pair) (cdr pair))) (org-babel--get-vars params))) (defun org-babel-load-session:eshell (session body params)