Skip to content

Instantly share code, notes, and snippets.

@ratnikov
Created February 18, 2014 01:58
Show Gist options
  • Save ratnikov/9063172 to your computer and use it in GitHub Desktop.
Save ratnikov/9063172 to your computer and use it in GitHub Desktop.
Reproduce windows globbing regression
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