Hacker News new | past | comments | ask | show | jobs | submit login

The problem is that we're still using these ancient shells when we have better ones. Users shouldn't be wasting time memorizing arcana like "set -e". At least we have search engines now...



I'm quite partial to the fish shell myself for this reason.

But I SSH into a lot of embedded systems these days, where you don't exactly have the luxury of installing your own shell all the time. For those times I like to whip out the "minimal safe Bash template" and `sftp` it to the server.

https://betterdev.blog/minimal-safe-bash-script-template/


When the shell script is that long, I reach for Python or Go instead pretty fast =)


Au contraire, bash/sh is pretty much everywhere.

Also, we have ChatGPT now. That helps a lot.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: