Are you annoyed by all the weird error handling characteristics of bash? You might wish to take a look at skarnet.org/software/execline/ or, if you desire compatibility, oilshell.org/

@robryk Cool stuff, but kinda seems to miss the point of most people using (to a lesser extent ba)sh -- it's everywhere. If you assume you can install arbitrary software then Python is already kinda an acceptable scripting solution, innit?

@timorl If you want to do standard shell things (like pipes), then Python is cumbersome (and lets you rediscover funny edge cases that are normally handled by the shell -- I'm not aware of a Python library that helps with that).

@robryk Hm, fair. Still, it's a very (surprizingly) niche usecase I feel.

@timorl Also, why don't people write things like init scripts in Python in that case? Python dependency would be a nonissue in many cases.

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.