Linux shebang handlers must be compiled
---------------------------------------

                 Key: JRUBY-1134
                 URL: http://jira.codehaus.org/browse/JRUBY-1134
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.0.0RC2
         Environment: Linux cat-in-the-hat 2.6.21-1-686 #1 SMP Sat May 26 
16:14:59 UTC 2007 i686 GNU/Linux
(Debian using official packages from Debian unstable)
            Reporter: Ken Bloom
            Assignee: Thomas E Enebo


Issue GROOVY-1936 (http://jira.codehaus.org/browse/GROOVY-1936) also applies to 
the JRuby interpreter. When using the interpreter in the shebang of one of my 
own scripts, Linux's recursive shebang handling is screwed up, so it tries to 
run my script in bash (rather than in jruby).

[EMAIL PROTECTED] nouns]$ cat test.rb 
#!/usr/bin/jruby1.0
puts "Hello"
[EMAIL PROTECTED] nouns]$ ./test.rb 
./test.rb: line 2: puts: command not found

The proper fix is to translate the jruby1.0 command to C, and to compile and 
install that on UNIX systems. Alternatively, speak to the linux-kernel mailing 
list about this, as I am uncertain whether this shebang handling behavior is a 
feature or a bug.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to