upvote
I’ve been down this path (it was a script for scraping and extracting text). You write your text utility in bash. It works. Then you need a regex so you use sed.

Then you wonder why it doesn’t work in your other environment. Then you find that GNU vs BSD sed have different syntax.

Better to start with Python once you’re doing more than coordinating well known other tools.

reply
> technically... you can be sure there's ed

Unfortunately, ed has been omitted from the default installation of recent debians, at least. I had to install it manually.

reply
WTF?! RIP Debian.

If I wanted an OS without a text editor, I'd use emacs.

reply
Who's updating their blog from a random machine without Python on it, though?
reply
It's not python that's the dependency that needs managing. It's pip and the keystone cops it brings along.
reply
I'd presume it's quite common with NixOS. At least I don't have python linked to my environment. It might be different would I use the REPL, but I do not, so for me python is a program (or script) dependency, not something I need to carry around. It's actually quite common for many setup scripts to fail when python is not installed, but not all of them list python as a dependency either.
reply
To be fair, qualifying bash as on (almost) every system and then poo-pooing vi as being also on (almost) every system seems odd. Had you said sh instead of bash the analogy would have worked better.
reply
deleted
reply