Hush, a modern shell scripting language
hush-shell.github.io
Hush, a modern shell scripting language
1–10 of 192 posts
Re: Hush, a modern shell scripting language
#2Re: Hush, a modern shell scripting language
#3Are there any other comparable alternatives?
Would Node/TS-Node be a suitable replacement with a few shell helper functions?
Re: Hush, a modern shell scripting language
#4Isn't that just a normal scripting language? What's the real benefit of using this over Node or Python? I suppose the syntax is more aesthetically similar to shell scripts... but I don't exactly see that as a plus.
Re: Hush, a modern shell scripting language
#5Interesting language/script. Are there any other comparable alternatives? Would Node/TS-Node be a suitable replacement with a few shell helper functions?
Re: Hush, a modern shell scripting language
#6 if std.type() == "error" then
It seems (a) a bit verbose and (b) a bit hacky to compare the type against the string "error". I wonder if more ergonomic error handling is something the author is planning.Re: Hush, a modern shell scripting language
#7Interesting language/script. Are there any other comparable alternatives? Would Node/TS-Node be a suitable replacement with a few shell helper functions?
Re: Hush, a modern shell scripting language
#8Is this really a shell scriping language? Hush isn't an interactive shell, nor does it compile to a common shell script. The only way to run these scripts is to install the hush interpreter and run the script through it. Isn't that just a normal scripting language? What's the real benefit of using this over Node or Python? I suppose the syntax is more aesthetically similar to shell scripts... but I don't exactly see…
Re: Hush, a modern shell scripting language
#9I'm not sure when I would use something like this. The verbosity definitely means I wouldn't use it as my actual shell, and I don't think that is the intention. Maybe something like a big service / orchestration script where I need to do all sorts of file manipulation, command processing, etc but there's enough logic and complexity to make it annoying to do in bash.
Re: Hush, a modern shell scripting language
#10... which is why I try to write as much stuff as POSIX sh as possible, and sometimes I have to throw in a Bashism to get by.
And I say this as someone that wishes sh was better, semi-lovingly.