exploitdb icon indicating copy to clipboard operation
exploitdb copied to clipboard

"grep: The -P option is not supported" on FreeBSD

Open rm1984 opened this issue 4 years ago • 2 comments

Hi, the implementation of the grep command on FreeBSD 12 (grep (GNU grep) 2.5.1-FreeBSD) doesn't support the "-P" flag, even if the following check returns true:

grep --help 2>&1 | grep "[-]-perl-regexp"

I suggest to add a check of the OS in use, and in case of FreeBSD set:

REGEX_GREP="-E"

Cheers, RM

rm1984 avatar Sep 11 '20 09:09 rm1984

Thanks for the report - will look into it in a week or so time

g0tmi1k avatar Sep 14 '20 16:09 g0tmi1k

Thanks for the report - will look into it in a week or so time

g0tmi1k avatar Sep 14 '20 16:09 g0tmi1k

Sorry for the delay. Please could you try again with the latest version: https://gitlab.com/exploit-database/exploitdb If you are still having issues, open up a ticket here: https://gitlab.com/exploit-database/exploitdb/-/issues

offensive-security avatar Nov 10 '22 19:11 offensive-security