Re: Java in OS?

Matthias Urlichs (
Sun, 5 May 1996 08:14:58 +0100

In, article <
Alan Cox <> writes:
> > How would you specify where to find the interpreter? Compiled Java
> > doesn't have comments, so you couldn't use the #!-style approach.
> You can add one to the front, you can also use something like the elk=
> module that spots elks binaries by magic number, rewrites them to
> allegedly have #! and passes them to the shell interpreter.
Or you can add a new loader. Use binfmt_scriptshell.c as the example to

NB: Why does trying to exec a script with an interpreter that is itself=
script cause an error? Specifically, EPERM? I think that should be allo=
(Yes I know, other Unixes frequently don't allow this, but that's no

echo "Did it"

# nothing interesting

% chmod +x /tmp/foo /tmp/bar
% /tmp/bar
bash: ./bar: Permission denied


And ever has it been known that
love knows not its own depth until the hour of separation.
--Kahlil Gibran
Matthias Urlichs \ Noris Network GmbH i.Gr/ Xlink-POP N=FCrnberg=
Schleiermacherstra=DFe 12 \ Linux+Internet / EMail: urlichs@nor=
90491 N=FCrnberg (Germany) \ Consulting+Programming+Networking+etc'i=
PGP: 1B 89 E2 1C 43 EA 80 44 15 D2 29 CF C6 C7 E0 DE=20
Click <A HREF=3D"">here</A>. =