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


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: jidanni <at> jidanni.org
To: bug-gnu-emacs <at> gnu.org
Subject: M-x grep should do some basic parameter checking
Date: Tue, 12 Feb 2013 13:49:04 +0800
Why doesn't M-x grep check that it has been given at least two
parameters, else it is bound to fail, as
$ grep
$ grep pattern
won't get far without some file arguments.

Yes
$ grep pattern pattern #wrong
will still pass as that would look the same as
$ grep pattern file
etc. but the check would be better than nothing.




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.