4 ms·
> Because bash is thousand blades and no handle. FTFY. It really is absolutely terrible tool as programming language. If your script is more than "a bunch of
by xani_ 4y ago
> Because bash is thousand blades and no handle.
FTFY.
It really is absolutely terrible tool as programming language. If your script is more than "a bunch of pipes in a trench coat" just use something else. I'd unironically prefer Perl to it.
- thomashabets2 4y agoThe final straw for me was when I (described in my blog post) realized that not even "foo | bar" does the right thing.
- lupire 4y agoOf course it's not ironic. Perl's raison d'entre is to replace bash+grep+sed+awk
- justin_oaks 4y agoIs there any good alternative to bash for stringing together multiple commands with pipes and redirections? "Real" programming languages usually have painful-to-use APIs for calling commmands, redirecting output, piping one command to another, etc.
- HdS84 4y agoPowershell core. It's actually usable and allows to use .net tools if you need to break out the big guns. Main drawback is the stupid channel thing, but that's manageable.
- draegtun 4y agoTcl would be a good choice here - https://www.tcl.tk/man/tcl8.5/tutorial/Tcl26.html https://www.tcl.tk/man/tcl8.5/tutorial/Tcl26.html