7 ms·
sed has different syntax on macos because macos is based on BSD. Really annoying to get a ticket "fix this build script for macos" and it is freaking sed compa
by DanielHB 4mo ago
sed has different syntax on macos because macos is based on BSD.
Really annoying to get a ticket "fix this build script for macos" and it is freaking sed compatibility issues.
edit: to be fair that happened once, but it was annoying
- rbanffy 4mo agoMacPorts provides GNU equivalents to the native BSD ones. You can always check if there is a `gsed` binary and use it (or check the OS, but checking direct behavior is always best). But yes, macOS is a Unix, not a Linux.
- frollogaston 4mo agoThen you run into Mac scripts expecting the BSD ones when you installed GNU. Similar issue with changing shell to bash.