sed --in-place isn’t posix compatible
robinwhittleton opened this issue · comments
Unfortunately switching from perl to sed has broken macOS compatibility, as --in-place
is a GNU thing. Short of requiring mac users to brew install gnu-sed
there don’t seem many clean options (see https://stackoverflow.com/questions/5694228/sed-in-place-flag-that-works-both-on-mac-bsd-and-linux).
What was the rationale for switching in the first place?
For consistency, since sed --in-place
was used elsewhere in the guide but perl wasn't. But it looks like most of those have been replaced with interactive-replace
so if you want to replace all of the instances of sed
with perl
then go for it.