At 08:22 2006-06-29, you wrote:
>I'm having some issues with the rake shell script. It installs, 
>surprisingly, with #!/path/to/jruby_shellscript, but when attempting to 
>run it directly, it seems to run with sh alone:
>
>[EMAIL PROTECTED]:~/testrails/test4$ $JRUBY_HOME/bin/rake rails:freeze:edge
>/home/headius/workspace/jruby/bin/rake: line 9: require: command not found
>/home/headius/workspace/jruby/bin/rake: line 10: version: command not found
>/home/headius/workspace/jruby/bin/rake: line 12: syntax error near 
>unexpected token `ARGV[0][1..-2]'
>/home/headius/workspace/jruby/bin/rake: line 12: `  if 
>Gem::Version.correct?(ARGV[0][1..-2])'
>
>If I modify the #! line to be #!/usr/bin/env jruby it works fine. Any 
>shell scripting gurus want to take a crack at this one?

This is easy to explain. The shebang isn't allowed to point to a script, 
since the shebang-program is started with one of the execv* system calls. 
Only binaries are allowed here, which is why env works.

/O



Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Jruby-devel mailing list
Jruby-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jruby-devel

Reply via email to