From e134ff6cdf7e4ab23429a34fbec68f78b3ffa6a0 Mon Sep 17 00:00:00 2001 From: Jim Porter Date: Mon, 20 May 2024 17:38:00 -0700 Subject: [PATCH] ; * lisp/eshell/em-unix.el (eshell-grep): Fix "plain grep" behavior. (cherry picked from commit eedb959441578f9b4e62b78e1a772328bffe9466) --- lisp/eshell/em-unix.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/eshell/em-unix.el b/lisp/eshell/em-unix.el index 751f13cc715..855efa26033 100644 --- a/lisp/eshell/em-unix.el +++ b/lisp/eshell/em-unix.el @@ -815,8 +815,8 @@ external command." (if (and maybe-use-occur eshell-no-grep-available) (eshell-poor-mans-grep args) (eshell-compile command (cons "-n" args) - (and eshell-plain-grep-behavior - 'interactive) + (when eshell-plain-grep-behavior + 'plain) #'grep-mode))) (defun eshell/grep (&rest args) -- 2.39.5