What is some convenient scripting system one can replace #Bash with? I feel like writing bash is so impossibly error-prone that it should have been banned from the internet for a long time. I'd even prefer to do something #Python or so. But even #Rust is probably more convenient.

Follow

@stevenroose
Same here... if my script needs conditions or loops I rather write it in Rust.

For me biggest inconvenience scripting in Rust was typed error handling since you almost always want your script to just exit on error so I have implemented Problem type:
github.com/jpastuszek/problem

I have also implemented single file scripting with focus on low execution latency:
github.com/jpastuszek/denim

And a very messy scripting prelude that goes with it:
github.com/jpastuszek/cotton

Sign in to participate in the conversation
Mastodon 🔐 privacytools.io

Fast, secure and up-to-date instance. PrivacyTools provides knowledge and tools to protect your privacy against global mass surveillance.

Website: privacytools.io
Matrix Chat: chat.privacytools.io
Support us on OpenCollective, many contributions are tax deductible!