chore: build scripts use sed -E for cross-OS compatibility#3275
chore: build scripts use sed -E for cross-OS compatibility#3275alex-courtis merged 3 commits intomasterfrom
Conversation
|
Oh, I had a lot of "fun" with this as well in the past! GNU and BSD (default macOS) sed are slightly different, particularly around the Current usage: Workarounds:
or conditionally call |
|
@alex-courtis I will test this one shortly |
Nice one @v3ceban , many solutions there. 1 is clear and simple. Using -i is not really necessary and is fragile and confusing. 3 is pragmatic, simple, compatible and there is precedent with doc-comments.sh 2 and 4 aren't very friendly and create friction. Let's see how it tests. |
f55a655 to
c534eaf
Compare
|
So far it LGTM. maybe if this one comes back we can try some more detailed (aka kind complex) solution. Sorry for such big delay. |
Cheers for the rebase. Merging this one, yes, we should simplify at some point. #3268 first. |
Many thanks to @Uanela for finding this one: #3261 (comment)
I'd be really grateful for your testing with the "standard" macos sed.