diff --git a/lisp/comint.el b/lisp/comint.el index c3cb439d8b8..df4937a7d6f 100644 --- a/lisp/comint.el +++ b/lisp/comint.el @@ -3852,7 +3852,7 @@ REGEXP-GROUP is the regular expression group in REGEXP to use." (set-buffer output-buffer) (goto-char (point-min)) ;; Skip past the command, if it was echoed - (and (looking-at command) + (and (looking-at (regexp-quote command)) (forward-line)) (while (and (not (eobp)) (re-search-forward regexp nil t))