You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However some flavors of Unix are more picky about what they will allow
as a shell program. For those you can use the following hack to make
your BeanShell scripts executable.
#!/bin/sh# The following hack allows java to reside anywhere in the PATH.
//bin/true;exec java bsh.Interpreter "$0""$@"
print("foo");
The above trick presumes that /bin/true exists on your system and that //bin is
the same as /bin. The // causes BeanShell to ignore the line.
The above has been tested on Solaris. It does not seem to work under Cygwin.