Why does start file in gitbash open the command prompt and not the file?

Viewed 47

When i am in my project folder and use the command start index.html it works perfectly and opens up the file in my browser, however, when I use start new\ index.html it opens up the command prompt. Why?

1 Answers

Check first if adding quotes would help, in a git bash session:

start "new\ index.html"

Since it is not working, I tested successfully, after reading "mingw make can't handle spaces in path?", and using cygpath:

start $(cygpath -w -s "new index.html")

With:

cygpath -w -s "new index.html"
NEWIND~1.HTM
Related