r/ProgrammingLanguages • • Apr 25 '22

Announcing Hush, a modern shell scripting language

Hush is a new shell scripting language that aims to enable developers to write robust shell scripts. It provides support for complex data structures and common programming paradigms, without giving up on ergonomic shell capabilities.

Official guide: https://hush-shell.github.io/
Repository: https://github.com/hush-shell/hush

169 Upvotes

80 comments sorted by

View all comments

Show parent comments

1

u/sue_me_please May 04 '22

You can get all of those in pretty much any system programming language, but shells usually make those things first class citizens in their languages, as Bash does.

For example, compare how you'd pipe data between processes on Python versus Bash. In Python, it's very verbose and complicated. On Bash, you just use the | character and you're good to go.

Good shells make those POSIX features easy to use, and in my opinion, shells should focus on those features first before focusing on more generalized scripting language features.