>From be456b8592429f0542113e0a433a6b977135d094 Mon Sep 17 00:00:00 2001 From: Phil Sainty Date: Sun, 2 Aug 2020 13:03:27 +1200 Subject: [PATCH] Fix usage of literal text as regexp * lisp/comint.el (comint-redirect-results-list-from-process): Use 'regexp-quote' when checking whether literal string COMMAND was inserted into the buffer. --- lisp/comint.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/comint.el b/lisp/comint.el index bf376a0..3e76c5d 100644 --- a/lisp/comint.el +++ b/lisp/comint.el @@ -3835,7 +3835,7 @@ comint-redirect-results-list-from-process (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)) -- 2.8.3