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

Fix: Use in-place edit option that works for Linux, macOS, and OpenBSD #12

Merged
merged 1 commit into from
Apr 1, 2018

Conversation

vizv
Copy link
Contributor

@vizv vizv commented Mar 31, 2018

This should fix #5 and #6, and I have tested working on Linux (GNU sed on Ubuntu), macOS (both BSD /usr/bin/sed and gnu-sed from brew), and OpenBSD (see https://github.com/passff/passff-host/issues/5#issuecomment-377656095)

This should fix #5, and #6 can be fixed with #10

@tuxor1337
Copy link
Contributor

tuxor1337 commented Mar 31, 2018

Wouldn't it be more natural to call the backup something like .bak instead of =?

What do you think about this? https://github.com/passff/passff-host/issues/5#issuecomment-377709755

@vizv
Copy link
Contributor Author

vizv commented Apr 1, 2018

The idea is to set backup extension to empty in order to prevent generating backup file, only macOS work in different way.

@tuxor1337
Copy link
Contributor

Okay, looks reasonable now.

@tuxor1337 tuxor1337 merged commit ab8125d into passff:master Apr 1, 2018
@vizv vizv deleted the fix-sed-issue branch April 5, 2018 00:49
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.

OpenBSD: sed fails
2 participants