macOS is a Unix, and not built on Linux. This can bite you when trying to write scripts which support both platforms. I think most of us realize that macOS isn’t a Linux OS, but what that also means is that instead of shipping with the GNU flavor of command line tools, it ships with the FreeBSD flavor. As such, writing shell scripts which can work across both platforms can sometimes be challenging. Homebrew Homebrew can be used to install the GNU versions of tools onto your Mac, but they are all prefixed with “g” by default.
• Software • 375 words • 2 minutes to read
• Tech Life • 1176 words • 6 minutes to read