It is, but it's to prevent an endless loop....  Imagine if you had a
script named /usr/someone/blah that started, ``#!/usr/someone/blah''.
It would try to recursively start itself as a script, and the kernel
would (potentially) go into an endless loop.

Thanks for your interest.

Yes I know that, but I have experienced such an endless loop
using only binary executables. the kernel crushed.
of course the logic was not so simple.

Under Unix, you could probably get around it by doing something like,
#!/usr/bin/env script-to-use-as-interpreter.  Some similar wrapper
could probably be written for Plan 9 to achieve the same effect.


that is easy but dirty.

Kenji Arisawa

Reply via email to