SyntaxFix
Write A Post
Hire A Developer
Questions
It should be a problem in your version of grep.
Your test cases are working correctly here on my machine:
$ echo "abc" | grep -io abc abc $ echo "ABC" | grep -io abc ABC
And my version is:
$ grep --version grep (GNU grep) 2.10