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

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

[debbugs-tracker] bug#19261: closed (Recursive grep even when content on


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#19261: closed (Recursive grep even when content on stdin)
Date: Wed, 03 Dec 2014 20:20:02 +0000

Your message dated Wed, 3 Dec 2014 12:18:39 -0800
with message-id <address@hidden>
and subject line Re: bug#19261: Recursive grep even when content on stdin
has caused the debbugs.gnu.org bug report #19261,
regarding Recursive grep even when content on stdin
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
19261: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=19261
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: Recursive grep even when content on stdin Date: Wed, 3 Dec 2014 16:05:10 +0100 User-agent: Mutt/1.5.23 (2014-03-12)
Hi,

I'm forwarding a bug report filed in debian. Is this the expected
behavior? 

/tmp/greptest %  dpkg -l | grep -r grep
wtf:hello grep
/tmp/greptest %  dpkg -l | grep grep   
ii  grep                                                        2.21-1
amd64        GNU grep, egrep and fgrep

grep -r takes the current dir as input instead of stdin.

Regards,

Santiago

----- Forwarded message from address@hidden -----

Date: Tue, 2 Dec 2014 21:38:51 +0200
From: address@hidden
To: address@hidden
Subject: Bug#414168: Recursive grep even when content on stdin
X-Mailer: Sylpheed 3.4.2 (GTK+ 2.24.22; amd64-portbld-freebsd9.3)

Hello

Since wheezy (grep 2.12-2) a patch like this has apparently been merged.
I'm not seeing it documented on the man page. (Shouldn't it be?)

This is undesirable for those of us who use shell aliases.

For example, I use
alias grep='grep -rI --exclude-dir=.svn'


Try the following sequence of commands:

mkdir /tmp/greptest
cd /tmp/greptest
echo hello grep > wtf
alias grep='grep -r'
dpkg -l | grep grep


Expected results:
ii  grep    2.12-2   amd64   GNU grep, egrep and fgrep

Actual results:
wtf:hello grep


It seems GREP_OPTIONS is special-cased, and I can move the switches
there as a workaround.


----- End forwarded message -----



--- End Message ---
--- Begin Message --- Subject: Re: bug#19261: Recursive grep even when content on stdin Date: Wed, 3 Dec 2014 12:18:39 -0800
On Wed, Dec 3, 2014 at 10:41 AM, Santiago <address@hidden> wrote:
....
> Jim, thanks for clarifying this.
>
> Please, find attached a simple patch to document this in the man page
> and info doc.

Hi Santiago,
Thank you for the patch.
I have converted that into a patch for you, writing the
commit log message and using the "From:" name and
email in the git commit Author: field. I'll wait to hear from
you, in case you'd prefer I use a different name or email.
Also, I moved each added line up one, to precede the
incidental note about equivalence to another option.

Attachment: 0001-doc-document-grep-2.11-change-in-behavior-of-r-recur.patch
Description: Binary data


--- End Message ---

reply via email to

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