Bug#274484: bsh shebang line: it works

2009-07-25 Thread Niels Thykier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Michael Koch wrote: On Fri, Jul 24, 2009 at 09:43:07AM +0200, Niels Thykier wrote: 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);

Bug#274484: bsh shebang line: it works

2009-07-24 Thread Niels Thykier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 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:

Bug#274484: bsh shebang line: it works

2009-07-24 Thread Ludovic Claude
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

Bug#274484: [Fwd: Re: Bug#274484: bsh shebang line: it works]

2009-07-24 Thread Niels Thykier
Forgot to CC bugs. Ludovic Claude wrote: 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

Bug#274484: bsh shebang line: it works

2009-07-24 Thread Niels Thykier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ludovic Claude wrote: Maybe you've got something else called bsh in your path. Can you send me the result for those commands: echo $PATH bsh --version /usr/bin/bsh --version which bsh says that bsh is /usr/bin/bsh type -a bsh says I have

Bug#274484: bsh shebang line: it works

2009-07-24 Thread Ludovic Claude
Sorry Niels, I don't have any more ideas. Looking at the bug history - and the error messages, it looks like bash is trying to run the script instead of bsh. I'm running Ubuntu 9.04, and all works well. There may be something in the configuration of bash in Debian that's not letting it run the

Bug#274484: bsh shebang line: it works

2009-07-24 Thread Michael Koch
On Fri, Jul 24, 2009 at 09:43:07AM +0200, Niels Thykier wrote: 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