sbase

suckless unix tools
git clone git://git.2f30.org/sbase.git
Log | Files | Refs | README | LICENSE

commit 78940f55bace508bad9b874a6273479b84f735eb
parent 4b733abe99a7e4dfb6074639c6f276cd1783a0eb
Author: sin <sin@2f30.org>
Date:   Wed Jan 20 17:26:47 +0000

grep: Change match any pattern to "^"

Diffstat:
grep.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/grep.c b/grep.c @@ -50,7 +50,7 @@ addpattern(const char *pattern, size_t patlen) /* a null BRE/ERE matches every line */ if (!Fflag) if (pattern[0] == '\0') - pattern = "."; + pattern = "^"; if (!Fflag && xflag) { tmp = enmalloc(Error, patlen + 3);