-f flag not working as discribed
Your grep seems to use ENHANCED FEATURES descibed in re_format(7), whereas proctools use extended regular expressions defined in POSIX. Using ENHANCED FEATURES is easy (simply replace REG_EXTENDED with REG_ENHANCED in regcomp()) but may have a portability issue.
I uploaded fixed code to github. wfaulk, j-devenish, Could you apply my patch? This bug still causes problems in 2018. Of course, I'll transfer the ownership of the repository on github to you if you want.
Your grep seems to use ENHANCED FEATURES descibed in re_format(7), whereas proctools use extended regular expressions defined in POSIX. Using ENHANCED FEATURES is easy (simply replace REG_EXTENDED with REG_ENHANCED in regcomp()) but may lost portability.
I can't access the patch from vanjalolz, however, patchs from Homebrew should work, at least on High Sierra. I uploaded patched sources to github.
It's 2014 and I just discovered the same behaviour. I am on Apple Mavericks and have...