logoalt Hacker News

bigiainlast Thursday at 3:06 AM1 replyview on HN

#4 is the big one for me.

And I don't really care. I'm super comfortable with one-liners in my bash shell. I can do useful stuff in bash scripts, but typically with a base script gets to more than a dozen or so lines, I find myself way more productive rewriting it in Python instead. Not because Python is "better" or because bash is "worse", but because _I'm_ better with Python and _I'm_ worse with bash. And I don't feel any urgent need to get better at bash, because the work I do means I pretty much always have Python available (at least everywhere I have bash available).

I know bash is way more capable than my kindergarten-grade use of it. And it'll remain in my toolkit and crontab for as long as unix-like OSen exist. But I'll be very unlikely to ever keep writing a bash script past a dozen or two lines ever again.


Replies

BeetleBlast Thursday at 4:26 PM

Try using xonsh: https://xon.sh/ I write all my shell scripts in it (well, at least the ones I don't need to share with coworkers).