a java simple bash emulator