GNU bug report logs - #13693
M-x grep should do some basic parameter checking

Previous Next

Package: emacs;

Reported by: jidanni <at> jidanni.org

Date: Tue, 12 Feb 2013 05:50:02 UTC

Severity: wishlist

Tags: wontfix

Merged with 1863, 6553

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: jidanni <at> jidanni.org
To: juri <at> jurta.org
Cc: 13693 <at> debbugs.gnu.org
Subject: bug#13693: M-x grep should do some basic parameter checking
Date: Wed, 13 Feb 2013 05:02:19 +0800
>>>>> "JL" == Juri Linkov <juri <at> jurta.org> writes:
>> Why doesn't M-x grep check that it has been given at least
>> two parameters

JL> Why two?  For example, for "git-grep pattern" just one is enough.

$ emacs
(grep "grep -nH -e love")
Will always fail. And the user will think "well, I can't find the love
letter she sent me, and thus can't find her address, so I will just give
up," when all along he just forgot to give the filename.

Whereas normally
$ grep love
would hang, waiting for input, so he would know that the relationship
still had a chance, and it was just emacs that was the reason the two
would have lost touch...




This bug report was last modified 7 years and 39 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.