From c76ba9dfc3f6dacbdb46369f676f29cad56d6b08 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Mon, 12 Apr 2021 20:27:30 -0700 Subject: RUN/MRUN: when :INFORM, also show the command which was run Signed-off-by: Sean Whitton --- src/connection.lisp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/connection.lisp') diff --git a/src/connection.lisp b/src/connection.lisp index 2b03e44..c666de3 100644 --- a/src/connection.lisp +++ b/src/connection.lisp @@ -345,7 +345,7 @@ case return only the exit code." (multiple-value-bind (err exit) (connection-run *connection* cmd input) (let ((out (readfile stdout))) - (when inform (informat 1 "~&~{ ~A~%~}" (lines out))) + (when inform (informat 1 "~& % ~A~%~{ ~A~%~}" cmd (lines out))) (if (or may-fail (= exit 0)) (if for-exit exit (values out err exit)) (error 'run-failed @@ -367,7 +367,7 @@ start with RUN." (informat 3 "~&MRUN ~A" cmd) (multiple-value-bind (out exit) (connection-run *connection* cmd input) - (when inform (informat 1 "~&~{ ~A~%~}" (lines out))) + (when inform (informat 1 "~& % ~A~%~{ ~A~%~}" cmd (lines out))) (if (or may-fail (= exit 0)) (if for-exit exit (values out exit)) (error 'run-failed -- cgit v1.2.3