Question

I'm wondering if there exists a bash shell script interpreter that runs solely in the JVM (i.e., does not rely on "shelling out" to a system bash.) A "Jbash" if you will.

Such interpreters exist for many other languages (JRuby, Jython, etc.) I'd have thought there'd be one for bash scripts as well but I haven't found one yet.

Any recommendations?

Was it helpful?

Solution

There is one in google code http://code.google.com/p/jbash/

OTHER TIPS

There is a new project : https://github.com/crashub/bash but too young at the moment:

Very early prototype built on top of the libbash ANTLR grammar, aims to implement basic stuff. The grammar provides an AST.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top