Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Work around bug in _egrep_o() function #2434

Merged
merged 4 commits into from Oct 10, 2019
Merged

Conversation

dkerr64
Copy link
Contributor

@dkerr64 dkerr64 commented Aug 10, 2019

_egrep_o() function accepts extended regex and on systems that do not have egrep uses sed to emulate egrep. This is failing on the specific regex I was using before my last commit... The problem is that I fixed it by passing in non-extended regex which then fails on systems that do have egrep. So I am no longer using _egrep_o.
See bugs #2385 and #2414
Note... even if those bugs are fixed, I would like to merge this PR and stop using _egrep_o()
Thanks

Fix bug reported by @maks2018 in issue acmesh-official#2305 by updating the regex in egrep of the subdomain html page.
_egrep_o() function accepts extended regex and on systems that do not have egrep uses sed to emulate egrep.
This is failing on the specific regex I was using before my last commit... ae66c6f
The problem is that I fixed it by passing in non-extended regex which then fails on systems that do have egrep.  So I am no longer using _egrep_o.
@Neilpang
Copy link
Member

the grep -o option is not always available on all the POSIX platforms.

Try to avoid using grep -o.
here is an example about how we process html:
https://github.com/Neilpang/acme.sh/blob/master/dnsapi/dns_he.sh

@dkerr64
Copy link
Contributor Author

dkerr64 commented Aug 17, 2019

the grep -o option is not always available on all the POSIX platforms.

Try to avoid using grep -o.
here is an example about how we process html:
https://github.com/Neilpang/acme.sh/blob/master/dnsapi/dns_he.sh

Okay, then I replace grep -o with sed.

@dkerr64
Copy link
Contributor Author

dkerr64 commented Sep 8, 2019

@Neilpang can you please merge this.
Thank you.
David

@Neilpang Neilpang merged commit 38e08bb into acmesh-official:dev Oct 10, 2019
@dkerr64 dkerr64 deleted the FreeDNS branch October 12, 2019 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants