Skip to content

Commit

Permalink
Merge pull request #10 from yoshrc/fix-grep
Browse files Browse the repository at this point in the history
Fix grep command to exclude group separators
  • Loading branch information
inwskatsube authored Sep 21, 2017
2 parents 4cf57f0 + 3727591 commit 35b2ec1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/functions.c
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ Boolean exist_file(char *path) {

Boolean find_kbdevent_info(KBDDEVINFO *devs, int* devcnt, int maxdevs) {
char cmd[] = GREP_CMD " -E 'Name=|Handlers|EV=' /proc/bus/input/devices | "\
GREP_CMD " -B2 'EV=1[02]001[3Ff]'";
GREP_CMD " -B2 -- 'EV=1[02]001[3Ff]' | " GREP_CMD " -v '^--$'";

char buff1[BUFSIZE+1] = {};
char buff2[BUFSIZE+1] = {};
Expand Down

0 comments on commit 35b2ec1

Please sign in to comment.