File.expand_path("NUL") broken #1312

djberg96 opened this Issue Dec 6, 2013 · 2 comments

3 participants


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.


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

@enebo enebo closed this in c78d5b0 Jan 7, 2014


@enebo enebo modified the milestone: 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