Skip to content

Portable sed expression for make update-hashes #56

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

Merged
merged 1 commit into from
Jan 30, 2018

Conversation

ijc
Copy link
Contributor

@ijc ijc commented Jan 30, 2018

While #55 fixed the issue with xargs it did not fix the sed expression to
work on MacOS. Do so by enabling extended regular expressions (-E) and
adjusting the expression, this now works on both Linux (GNU sed 4.4) and on
MacOS (system sed from FreeBSD).

This properly fixes #52.

Signed-off-by: Ian Campbell [email protected]

While linuxkit#55 fixed the issue with `xargs` it did not fix the `sed` expression to
work on MacOS. Do so by enabling extended regular expressions (`-E`) and
adjusting the expression, this now works on both Linux (GNU sed 4.4) and on
MacOS (system `sed` from FreeBSD).

This properly fixes linuxkit#52.

Signed-off-by: Ian Campbell <[email protected]>
@ijc
Copy link
Contributor Author

ijc commented Jan 30, 2018

MacOS (system sed from FreeBSD).

FTR that's MacOS High Sierra (10.13.2)

Copy link
Member

@rn rn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no sed variants expert, but assume you tested, so LGTM

@ijc ijc merged commit d987e85 into linuxkit:master Jan 30, 2018
@ijc ijc deleted the portable-hash-updates branch January 30, 2018 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

make update-hashes is not portable
3 participants