Me, when my new job forces macos for development

https://lemmy.today/post/35172829

Me, when my new job forces macos for development - Lemmy Today

- ip πŸ’₯ uhhhggghhh - awk πŸ’₯ uhhhggghhh - sed πŸ’₯ uhhhggghhh - grep πŸ’₯ uhhhggghhh - journalctl πŸ’₯ uhhhggghhh - brew install docker? Nope! πŸ’₯ uhhhggghhh Having to maintain TWO build chains and deal with all the extra tooling and complexity πŸ’₯πŸ’₯πŸ’₯πŸ’₯πŸ’₯πŸ’₯ uhhhggghhh

my workaround for awk, sed, and grep has been to create symlinks in my $Path that point to gawk, gsed, and ggrep, which you can install through brew. Nix has also been useful to keep my sanity intact, tho it’s a learning curve too, and when Macos updates happen you will need to fix/reinstall it. Can I ask what terminal you are using?

create symlinks in my $Path that point to gawk, gsed, and ggrep

The problem with this is that scripts assume the BSD versions of those tools. The scripts break if I do that. (I tried doing that.)

All of our scripts are littered with:

if os == linux awk <something> else if os == mac awk <something else>
Why not set an $awk var once for the right platform and then use that instead of if-on-every-call? This seems incredibly error prone and verbose for no reason…