Google zx: A tool for writing better scriptsgoogle.github.io 24 pointscsantini3 years ago7 commentsSaveHideCopy link On HNComments−dang3yRelated. Others?Zx 3.0 - https://news.ycombinator.com/item?id=28195580 - Aug 2021 (163 comments)−datadrivenangel3yWhy would we want to write our bash scripts in Javascript?−whalesalad3yI have infinitely more confidence in my ability to write correct JavaScript−zem3ywhat we want is to write our bash scripts in not-bash. if your preferred flavour of not-bash is javascript zx will help.−janderland3yBecause BASH’s string splitting rules, concurrency tools, and variable scoping are nightmarish.I’ve written build scripts in BASH, Python, and JavaScript and can definitely say BASH scripts produced the most difficult bugs.I welcome another option for my glue code.−ChrisArchitect3yHow about don't add a random tag to the url so you don't submit a dupe of the one from earlier - https://news.ycombinator.com/item?id=37392515−thesuperbigfrog3yNow you can write scripts with zx to compress your scripts with xz (https://tukaani.org/xz/).
Comments
Related. Others?
Zx 3.0 - https://news.ycombinator.com/item?id=28195580 - Aug 2021 (163 comments)
Why would we want to write our bash scripts in Javascript?
I have infinitely more confidence in my ability to write correct JavaScript
what we want is to write our bash scripts in not-bash. if your preferred flavour of not-bash is javascript zx will help.
Because BASH’s string splitting rules, concurrency tools, and variable scoping are nightmarish.
I’ve written build scripts in BASH, Python, and JavaScript and can definitely say BASH scripts produced the most difficult bugs.
I welcome another option for my glue code.
How about don't add a random tag to the url so you don't submit a dupe of the one from earlier - https://news.ycombinator.com/item?id=37392515
Now you can write scripts with zx to compress your scripts with xz (https://tukaani.org/xz/).