File.expand_path does not expand tilde characters to home directory on all
platforms
------------------------------------------------------------------------------------
Key: JRUBY-1024
URL: http://jira.codehaus.org/browse/JRUBY-1024
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.0.0RC2
Environment: OS X 10.4.9, Java 1.5, JRuby rev 3672
Reporter: Daniel Berger
Priority: Minor
Fix For: JRuby 1.0.0RC3
JRuby does not support tilde expansion for File.expand_path:
{noformat}
user = ENV["USER"]
File.expand_path("~#{user}")
{noformat}
That raises an ArgumentError. As per the conversation on IRC, this occurs on
platforms that don't have users stored in /etc/passwd.
--
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