bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#57247: [PATCH] em-unix.el: only pass -H option to grep


From: Brendan O'Dea
Subject: bug#57247: [PATCH] em-unix.el: only pass -H option to grep
Date: Tue, 16 Aug 2022 13:17:40 -0400

Tags: patch

A recent change to eshell-grep added the -H option to cmd in order to
ensure that the filename is always included in the output.

This is fine for grep/egrep/fgrep, but breaks other uses if they don't
support that flag: e.g. agrep/glimpse appear to use -H for a
completely different purpose, one which requires an argument.

In my case, I'm using it to define some eshell commands for some
internal search tools which don't support the flag.

Attached is a patch which moves the addition of the -H option only to
the functions which call grep.

--bod

Attachment: em-unix.patch
Description: Text Data


reply via email to

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