; * 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)
committerJim Porter <jporterbugs@gmail.com>
Tue, 21 May 2024 00:38:00 +0000 (17:38 -0700)
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)