Adam created JRUBY-6460: --------------------------- Summary: realpath does not expand symlinks as expected Key: JRUBY-6460 URL: https://jira.codehaus.org/browse/JRUBY-6460 Project: JRuby Issue Type: Bug Components: Standard Library Affects Versions: JRuby 1.6.6 Environment: Ubuntu 10.04.4 LTS Reporter: Adam Assignee: Thomas E Enebo Priority: Minor
realpath on File and Pathname do not expand symlinks as expected (based on my reading of the docs and a quick experiment with MRI). /tmp/symlinks$ ls -la foo lrwxrwxrwx 1 me grp 1 2012-02-16 19:56 foo -> / /tmp/symlinks$ /usr/bin/ruby -v ruby 1.8.7 (2010-01-10 patchlevel 249) [x86_64-linux] /tmp/symlinks$ /usr/bin/ruby -e 'require "pathname";puts Pathname.new("./foo").realpath' / /tmp/symlinks$ jruby -v jruby 1.6.6 (ruby-1.9.2-p312) (2012-01-30 5673572) (OpenJDK Server VM 1.6.0-google-v4) [linux-i386-java] jruby -e 'require "pathname";puts Pathname.new("./foo").realpath' /tmp/symlinks/foo -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.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