Bug#274484: bsh shebang line: it works

Ludovic Claude ludovic.claude at laposte.net
Fri Jul 24 18:34:44 UTC 2009


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 bsh
script from a shebang line, but I don't know what it is.

Ludovic


Niels Thykier a écrit :
> 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 no other bsh than /usr/bin/bsh.
> Last but not least:
> 
> $ echo $PATH
> /home/user/bin:/usr/local/bin:/usr/bin:/bin:/usr/games
> $ for FILE in `echo $PATH | sed 's/:/\n/g' | sed 's@$@/bsh at g'` ; do
> $>   test -f "$FILE" && ls -l "$FILE"
> $> done
> -rwxr-xr-x 1 root root 230 2008-04-27 23:13 /usr/bin/bsh
> $
> 
> confirms this (I remember something about "type" catching its results,
> so just in case, I had the shell check manually).
> 
> 
>> It should print for both commands
>>  File not found: java.io.FileNotFoundException: /home/ludo/tmp/--version
>> (No such file or directory)
> 
> 
> Both of the commands fails as expected.
> 
> $ bsh --version
> File not found: java.io.FileNotFoundException: /home/user/--version (No
> such file or directory)
> $ /usr/bin/bsh --version
> File not found: java.io.FileNotFoundException: /home/user/--version (No
> such file or directory)
> 
> So I am afraid this is not the issue. Let me know if you have other
> tests, that we can use to narrow down the problem.
> 
>> Ludovic
> 
> 
> ~Niels
> 
>> Niels Thykier a écrit :
>>> Ludovic Claude wrote:
>>>> [...]
> 





More information about the pkg-java-maintainers mailing list