Bug#274484: bsh shebang line: it works

Niels Thykier niels at thykier.net
Fri Jul 24 17:49:04 UTC 2009


-----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 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:
>>> [...]

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkpp8zMACgkQVCqoiq1YlqxTtACfeviuNPQYSu8n+F7vVIjJmHU6
OnkAoISoePzQtwrI5c72XtU61Izjpdec
=Ziof
-----END PGP SIGNATURE-----





More information about the pkg-java-maintainers mailing list