Hacker News new | ask | show | jobs
by rbanffy 16 days ago
Apart from the GUI environment, the Mac is a Unix and I find it hard to notice much difference between it and a Linux. I use MacPorts on my Macs and there is no drama with command line tools.

On my work Mac I don’t have sudo and I still could install MacPorts with zero issues.

1 comments

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

MacPorts 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.

Then you run into Mac scripts expecting the BSD ones when you installed GNU. Similar issue with changing shell to bash.