org-babel-variable-assignments:eshell: Prevent leaking values into results
* lisp/ob-eshell.el (org-babel-variable-assignments:eshell): Wrap `setq' eshell call into `ignore' to prevent the variable assignment values leaking into block output. Fixes `ob-eshell/variables-assignment'.
This commit is contained in:
parent
68aa438857
commit
b5aaefb551
|
@ -97,7 +97,8 @@ The PARAMS are variables assignments."
|
||||||
"Convert ob-eshell :var specified variables into Eshell variables assignments."
|
"Convert ob-eshell :var specified variables into Eshell variables assignments."
|
||||||
(mapcar
|
(mapcar
|
||||||
(lambda (pair)
|
(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)))
|
(org-babel--get-vars params)))
|
||||||
|
|
||||||
(defun org-babel-load-session:eshell (session body params)
|
(defun org-babel-load-session:eshell (session body params)
|
||||||
|
|
Loading…
Reference in New Issue