emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 4b25ffd: Fix "grep foo bar" in eshell


From: Lars Ingebrigtsen
Subject: master 4b25ffd: Fix "grep foo bar" in eshell
Date: Thu, 3 Dec 2020 05:18:53 -0500 (EST)

branch: master
commit 4b25ffd3b8ffb854c2458efc4914829ead9a0f79
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Fix "grep foo bar" in eshell
    
    * lisp/eshell/em-unix.el (eshell-grep): Use the -H switch so that
    we always get the file name, so that `M-x next-error' and friends
    work (bug#22330).
---
 lisp/eshell/em-unix.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/eshell/em-unix.el b/lisp/eshell/em-unix.el
index 1530004..c66f307 100644
--- a/lisp/eshell/em-unix.el
+++ b/lisp/eshell/em-unix.el
@@ -754,7 +754,7 @@ external command."
                                      (eshell-stringify-list
                                       (flatten-tree args)))
                              " "))
-            (cmd (format "%s -n %s"
+            (cmd (format "%s -nH %s"
                          (pcase command
                            ("egrep" "grep -E")
                            ("fgrep" "grep -F")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]