Created
February 18, 2014 01:58
-
-
Save ratnikov/9063172 to your computer and use it in GitHub Desktop.
Reproduce windows globbing regression
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
path = "c:/*" | |
dos = Dir[path.gsub('/', '\\')] | |
unix = Dir[path] | |
puts "dos: #{dos.inspect}" | |
puts "unix: #{unix.inspect}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment