I\'d like to invoke bash using a string as input. Something like:
sh -l -c \"./foo\"
I\'d like to do this from Java. Unfortunately, when I
if I were you, I would write the contents of the string to a temp bashfile and see if bash executes that without any error. If that executes without an error, then I would consider debugging further;