In commit e5008c655ea0373ece8c8dfef6e3aa073991249e a condition was added to check if the grep command supports the -P parameter.
However, from my testing at least, this doesn't seem to work as it uses /dev/null to check for "", probably based on the assumption that grep will return positively even if it doesn't find the matching string (here ""), which isn't true when using /dev/null.
At least that is my understanding of the issue, feel free to correct me if it isn't exactly that <3
What is sure however is that it doesn't work on my setup, even though I do have the grep -P option and it works fine (worked fine before e5008c655ea0373ece8c8dfef6e3aa073991249e, and still works when removing the condition).
Instead of doing a grep -P "" /dev/null I changed it to a echo "" | grep -P "", the result will still be positive as grep doesn't return an error when no matches are found, but the string isn't ""null"" as with /dev/null, and so the condition doesn't always return false.
What I have done and why
In commit e5008c655ea0373ece8c8dfef6e3aa073991249e a condition was added to check if the grep command supports the -P parameter.
However, from my testing at least, this doesn't seem to work as it uses /dev/null to check for "", probably based on the assumption that grep will return positively even if it doesn't find the matching string (here ""), which isn't true when using /dev/null.
At least that is my understanding of the issue, feel free to correct me if it isn't exactly that <3 What is sure however is that it doesn't work on my setup, even though I do have the grep -P option and it works fine (worked fine before e5008c655ea0373ece8c8dfef6e3aa073991249e, and still works when removing the condition).
Instead of doing a
grep -P "" /dev/null
I changed it to aecho "" | grep -P ""
, the result will still be positive as grep doesn't return an error when no matches are found, but the string isn't ""null"" as with /dev/null, and so the condition doesn't always return false.