3

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?

jwfearn
  • 28,781
  • 28
  • 95
  • 122

2 Answers2

2

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

Raihan
  • 10,095
  • 5
  • 27
  • 45
  • Thanks for the suggestion, unfortunately this one is currently buggy, simple `ls` and `pwd` commands throw ParseExceptions. – jwfearn Nov 15 '11 at 17:43
  • Yes, this project seems dead. Yet such a shell would be a great idea. – Ingo Nov 23 '11 at 14:10
0

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.

Franck
  • 944
  • 14
  • 28