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

Error calling sed on BSD systems #7

Open
dunderhay opened this issue Oct 12, 2022 · 0 comments
Open

Error calling sed on BSD systems #7

dunderhay opened this issue Oct 12, 2022 · 0 comments

Comments

@dunderhay
Copy link

sed on BSD systems (such as macos in my case) do not handle parsing command-line arguments the same way as GNU sed.

When performing the rule de-duplication clean up -> Removing duplicate IPs/Networks on line 583, where sed is invoked as: sed -e ... -i <file> results in the following error on macos / most likely other BSD systems:

sed: -I or -i may not be used with stdin

This can be fixed by calling sed -i -e ... <file> instead.

dunderhay added a commit to dunderhay/redirect.rules that referenced this issue Oct 12, 2022
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

No branches or pull requests

1 participant