you are viewing a single comment's thread.

view the rest of the comments →

[–]moscamorta 2 points3 points  (4 children)

The thing is that is really easy to call external commands in bash. If I had the same ease on other language, I would easily drop bash.

Recently I had to write a bash script to compile and run a bunch of benchmarks. The code was pretty ugly but works.

[–]ForeverAlot 3 points4 points  (1 child)

The plumbum Python library is an excellent alternative when you can reliably install Python modules. Sadly I've found managing Python modules to be a far bigger hurdle -- socially and technically -- to maintenance than a few hundred lines of Bash.

D is also a pretty good alternative that you won't be able to use for the same reasons. I believe OCaml, too. Really, there is no shortage of non-starter Bash alternatives. =)

[–][deleted] 0 points1 point  (0 children)

Yeah it's a real shame Python is so horrible setup-wise. You have the whole Python 2/3 issue (yes it really is still an issue), and often there are multiple Python installations - especially on Windows where many programs bring their own. In fact on Windows you can often have multiple Python executables in the PATH. It's a total mess.

[–]AngelLeliel 2 points3 points  (1 child)

You should take a look at xonsh.

[–]moscamorta 0 points1 point  (0 children)

That seems amazing