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

BSD/GNU portability fixes. #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

gezalore
Copy link

Hi Eric,

I really liked this project, especially in conjunction with zsh-autosuggestions that you have significantly improved lately (thanks for that!), so I made it work on GNU systems as well. I could not test on OS X, but it should now work on both.

Bests,
Geza

In GNU sed regular expressions '\|' is an extension even when not using
extended syntax, so use '[|]' to match a single pipe character. This
should work on all platforms as expected.

GNU mktemp needs at least 3 X's in the template.

md5 is not available on GNU/Linux out of the box, so use md5sum or md5,
whichever is present.

Also removed some unnecessary backslash escapes.
@ericfreese
Copy link
Owner

Fantastic! Thanks for the PR. I will try to take a look at this sometime this week and get it merged in.

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.

3 participants