Hi Niels,

This works for me:

#!/usr/bin/bsh
String a = "Hello";
System.out.println(a);

Maybe you were missing the semi colon after "Hello". You need also to
make your hello.bsh file executable

My test script:

cat > hello.bsh <<EOF
#!/usr/bin/bsh
String a = "Hello";
System.out.println(a);
EOF
chmod u+x hello.bsh
./hello.bsh

Can you give the exact version number for bsh on your system? Use
dpkg --status bsh

Ludovic

Niels Thykier a écrit :
> Hi
> 
> I just tested this with bsh (version 2.0b4) and it does not seem to work
> for me. Neither the previous example nor
> 
> 
> String a = "Hello"
> System.out.println(a);
> 
> Which works directly in bsh, but not from a #!/usr/bin/bsh shell.
> 
> My kernel version is: 2.6.26-2-686
> 
> ~Niels

_______________________________________________
pkg-java-maintainers mailing list
pkg-java-maintain...@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/pkg-java-maintainers





-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to