Fix Eshell's evaluation of empty 'progn' forms
Do not merge to master. * lisp/eshell/esh-cmd.el (eshell-do-eval): Make sure we evaluate to 'nil' for 'progn' forms with no body (bug#73722).
This commit is contained in:
@@ -1266,7 +1266,7 @@ have been replaced by constants."
|
||||
(setq args (cdr args)))))
|
||||
(cond
|
||||
((eq (car form) 'progn)
|
||||
(car (last form)))
|
||||
(car (last (cdr form))))
|
||||
((eq (car form) 'prog1)
|
||||
(cadr form))
|
||||
(t
|
||||
|
||||
Reference in New Issue
Block a user