logoalt Hacker News

wpmtoday at 12:19 AM1 replyview on HN

I simply do not write shell scripts that use or reference binaries/libraries that are no pre-installed on the target OS (which is the correct target, writing shell scripts for portability is silly).

There is no package manager that is going to make a shell script I write for macOS work on Linux if that script uses commands that only exist on macOS.


Replies

fragmedetoday at 7:54 AM

fwiw (home)brew exists on both platforms