Bug#274484: bsh shebang line: it works

Ludovic Claude ludovic.claude at laposte.net
Fri Jul 24 08:10:17 UTC 2009


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-maintainers at lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/pkg-java-maintainers







More information about the pkg-java-maintainers mailing list