문제

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?

도움이 되었습니까?

해결책

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

다른 팁

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top