Skip to content

Use AWK instead of sed to create BOM in feature test#5728

Merged
danielbachhuber merged 1 commit intowp-cli:mainfrom
mrsdizzie:fix-5723
Jan 12, 2023
Merged

Use AWK instead of sed to create BOM in feature test#5728
danielbachhuber merged 1 commit intowp-cli:mainfrom
mrsdizzie:fix-5723

Conversation

@mrsdizzie
Copy link
Member

The current test fails on MacOS because of:

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

After fixing that, I found sed on MacOS works in text mode vs binary mode and it is difficult have it make a binary change like this. Use AWK instead since it works the same everywhere in this case.

Fixes #5723

The current test fails on MacOS because of:

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

After fixing that,  I found sed on MacOS works in text mode vs binary mode and it is difficult have it make a binary change like this. Use AWK instead since it works the same everywhere in this case.

Fixes wp-cli#5723
@mrsdizzie mrsdizzie requested a review from a team as a code owner January 12, 2023 15:35
@danielbachhuber danielbachhuber added this to the 2.8.0 milestone Jan 12, 2023
@danielbachhuber danielbachhuber added the scope:testing Related to testing label Jan 12, 2023
Copy link
Member

@danielbachhuber danielbachhuber left a comment

Choose a reason for hiding this comment

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

Thanks @mrsdizzie !

@danielbachhuber danielbachhuber merged commit 0285d4a into wp-cli:main Jan 12, 2023
@mrsdizzie mrsdizzie deleted the fix-5723 branch January 19, 2023 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope:testing Related to testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Test fail on MacOS because of gnused feature

2 participants