]> git.eshelyaron.com Git - emacs.git/commitdiff
; * lisp/eshell/em-unix.el (eshell-grep): Fix "plain grep" behavior.
authorJim Porter <jporterbugs@gmail.com>
Tue, 21 May 2024 00:38:00 +0000 (17:38 -0700)
committerEshel Yaron <me@eshelyaron.com>
Thu, 23 May 2024 08:29:15 +0000 (10:29 +0200)
(cherry picked from commit eedb959441578f9b4e62b78e1a772328bffe9466)

lisp/eshell/em-unix.el

index 751f13cc715f562a21b7943ca92e92d80a369ea9..855efa26033738374293dba19f35ff78f2df370c 100644 (file)
@@ -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)