#! shebang in cygwin uses cygwin paths
--------------------------------------
Key: JRUBY-1142
URL: http://jira.codehaus.org/browse/JRUBY-1142
Project: JRuby
Issue Type: Bug
Components: Miscellaneous
Affects Versions: JRuby 1.0.0RC3
Environment: Cygwin
Reporter: Scott A Miller
Assignee: Thomas E Enebo
Priority: Minor
Attachments: jruby-cygwin.patch
When #! is used in cygwin, the absolute cygwin (unix) path is being used.
Since java doesn't know about these mounts, the script fails to load. It looks
like this is a common problem (win32 python -
http://www.thescripts.com/forum/thread28317.html).
I've attached a proposed solution in jruby: if the environment is cygwin, check
the first command line argument, if the argument begins with a "/" and is a
file or directory that exists, change it to the windows notation that java will
understand.
I initially used this behavior for all command line arguments (nice for
tab-completion), but figured there might be a rare case that someone's ruby-app
requires such a path.
--
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