Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File.expand_path("NUL") broken #1312

Closed
djberg96 opened this Issue Dec 6, 2013 · 2 comments

Comments

Projects
None yet
3 participants
@djberg96
Copy link
Contributor

djberg96 commented Dec 6, 2013

File.expand_path("NUL") and File.expand_path("NUL:") should expand to "//./NUL" on Windows. Instead it appears to be expanding to the end of the current path.

NUL is a special device on Windows, equivalent to /dev/null.

http://en.wikipedia.org/wiki/NUL:

@rebelwarrior

This comment has been minimized.

Copy link

rebelwarrior commented Dec 19, 2013

Also happens when doing: File.expand_path(File::NULL)

@enebo enebo closed this in c78d5b0 Jan 7, 2014

@djberg96

This comment has been minimized.

Copy link
Contributor Author

djberg96 commented Jan 12, 2014

Thanks!

@enebo enebo modified the milestones: JRuby 1.7.10, JRuby 1.7.11 Feb 24, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.