On 4/5/07, Kirill A. Shutemov <k.shutemov / gmail.com> wrote:
> > echo -e '#!test\nputs "test passed"' | ruby
> -:1: Can't exec test (fatal)
>
> Ruby parse shebang and try to run program using shebang if it's not ruby.
>
> I think it's wrong. Shebang should be parsed by shell, not ruby. If I try
> to run a file using ruby, it should be run using ruby. Ruby is not a
> shell.

This has been this way for a very long time; there is a good reason
for it but I can't remember what it is offhand.

-austin
-- 
Austin Ziegler * halostatue / gmail.com * http://www.halostatue.ca/
               * austin / halostatue.ca * http://www.halostatue.ca/feed/
               * austin / zieglers.ca