Windows argument paths and the ol' '\'
Opened this issue · 2 comments
adammartin commented
If you are running ruby on a windows machine and you pass in a arguments like:
ruby my_example.rb c:\some\path\to_a_file_to.parse
Then you will receive a "too short escape" error because of windows style pathing. It would be nice to be able to tell an argument is a path and not escape the '' character.
ahoward commented
do you have a fix?
adammartin commented
I haven't had a chance to dig in and come up with a solution yet. One of the bits I'm worried about is a sensible way to detect I'm dealing with a path vs. any other string. I.e. should we detect that we are on a Windows system and if we are then check to see if we are dealing with a regex pattern that starts like a drive pathing? (i.e. [A-z]:\ or some such)