Re:When Bash scripts bite
by ryanmccullagh on Friday May 12, 2017 @12:08AM
(#14321375)
I believe OCaml would be a horrible choice as a replacement for bash
[ Parent
| on HN ]
Re:When Bash scripts bite
by Mathnerd314 on Friday May 12, 2017 @12:12AM
(#14321390)
Haskell has several shell-scripting libraries:
https://hackage.haskell.org/package/turtle
https://hackage.haskell.org/package/shelly
http://chrisdone.com/posts/shell-conduit
ocaml isn't that far off, just even less popular...
They do not seems to warrant further investigation, the examples you find about these implementations are overly simplified bordering useless. If you are going that way you might as well go with something like PowerShell, and that's a horrible scriping language.
Funny how ShellCheck mentioned above is written in Haskell :)
You might want to have a look at [bos]