mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-01-11 22:30:44 +01:00
register fails when egrep doesn't support -a #549
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @bahamat on GitHub (Sep 21, 2021).
The detection for which grep to use doesn't take into account that -a is not always supported, which leads to it not setting
GREP=awk_egrep.Additionally, systems where egrep doesn't support
-a, probably won't havegawk. But even if they do, gawk produces this error:or
(depending on version).
@lukas2511 commented on GitHub (Sep 21, 2021):
Hey, thanks for the input. I actually have a version of dehydrated lurking on my system (for waaay to long..) that got rid of the egrep and gawk usage completely, but I didn't push it yet because I was kinda stuck on setting up a testing system, which I wanted to do before pushing code that could have broken dehydrated on various systems...
I've uploaded that version here (for now): https://gist.github.com/lukas2511/5baa4fd9358f5fa622b90f3cfb2c0a19
It would be great if you could check if it works for you.
@bahamat commented on GitHub (Sep 21, 2021):
I'll try that one and let you know.
@bahamat commented on GitHub (Sep 21, 2021):
Nope, that one doesn't. I got here originally because on illumos, our grep doesn't support
-a, and that's the error I still get. here.@lukas2511 commented on GitHub (Oct 31, 2021):
Should hopefully be fixed by the merged pull-request (#840).