3 ms·
Author here. My main use for this is incremental migration away from bash. I'm not saying this is the best way to do scripts, but it's a pretty great stepping
by themk 3y ago
Author here.
My main use for this is incremental migration away from bash. I'm not saying this is the best way to do scripts, but it's a pretty great stepping stone. Just following the cargo culting guide [0] can already uplift a bash script without changing the logic too much. From there you can start adding structure.
My secondary use case is little scripts in NixOS/nixpkgs. There are some helpers in there that make it quite convenient.
[0] https://github.com/luke-clifton/shh/blob/master/docs/porting.md https://github.com/luke-clifton/shh/blob/master/docs/porting...