From: Jim Porter Date: Tue, 21 May 2024 00:38:00 +0000 (-0700) Subject: ; * lisp/eshell/em-unix.el (eshell-grep): Fix "plain grep" behavior. X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e134ff6cdf7e4ab23429a34fbec68f78b3ffa6a0;p=emacs.git ; * lisp/eshell/em-unix.el (eshell-grep): Fix "plain grep" behavior. (cherry picked from commit eedb959441578f9b4e62b78e1a772328bffe9466) --- 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)