[hackers] [sbase] grep: Fix -c flag || Michael Forney

From: <git_AT_suckless.org>
Date: Sun, 02 Nov 2014 10:46:56 +0100

commit 6327290cf273766b6ebef9af750951844fef4942
Author: Michael Forney <mforney_AT_mforney.org>
Date: Sun Nov 2 03:08:13 2014 +0000

    grep: Fix -c flag

diff --git a/grep.c b/grep.c
index 1376513..489f6e7 100644
--- a/grep.c
+++ b/grep.c
_AT_@ -42,11 +42,11 @@ main(int argc, char *argv[])
         case 'E':
                 flags |= REG_EXTENDED;
                 break;
- case 'c':
         case 'e':
                 addpattern(EARGF(usage()));
                 eflag = true;
                 break;
+ case 'c':
         case 'l':
         case 'n':
         case 'q':
Received on Sun Nov 02 2014 - 10:46:56 CET

This archive was generated by hypermail 2.3.0 : Sun Nov 02 2014 - 10:48:14 CET