File.expand_path in cygwin gives incorrect results
--------------------------------------------------
Key: JRUBY-2226
URL: http://jira.codehaus.org/browse/JRUBY-2226
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.1RC2
Environment: cygwin on Windows XP
Reporter: Landon Cox
Steps to reproduce the issue with jirb:
[EMAIL PROTECTED] /cygdrive/c/jruby-1.1RC2/bin
$ ./jirb
irb(main):001:0> pwd = `pwd`.strip
=> "/cygdrive/c/jruby-1.1RC2/bin"
irb(main):002:0> test = "#{pwd}/jirb.bat"
=> "/cygdrive/c/jruby-1.1RC2/bin/jirb.bat"
irb(main):005:0> file = File.expand_path(test)
=> "c:/jruby-1.1RC2/bin/cygdrive/c/jruby-1.1RC2/bin/jirb.bat"
irb(main):006:0> quit
This path is not valid in cygwin or in windows environments.
--
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