You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Standards document mentions that option -x should work with fixed strings [1]
* This version didn't allow -x with -F; add it now for better compliance with standard
* I have a small test file with some C code
* test1: "perl grep int a.c" --> matches "int\n" and "printf(...);\n"
* test2: "perl grep -i Int a.c" --> same match as test1
* test3: "perl grep -iv Int a.c" --> matches all except "int\n" and "printf(...);\n"
* test4: "perl grep -v Int a.c" --> matches all lines because Int doesn't appear at all
* test5: "perl grep -F -x int a.c" --> matches only "int\n"
* test6: "perl grep -Fxi Int a.c" --> same match as test5
* test7: "perl grep -Fxiv Int a.c" --> matches all except "int\n"
* test8: "perl grep -Fxv Int a.c" --> matches all lines because Int doesn't appear at all
1. https://pubs.opengroup.org/onlinepubs/9699919799/utilities/grep.html
0 commit comments