Forward slash vs backward slash for file path in git bash

后端 未结 4 1301
孤街浪徒
孤街浪徒 2021-01-14 08:36

I am running these two commands in Git bash.

Why they behave differently? Aren\'t they supposed to do the same thing or am I missing something?

4条回答
  •  天涯浪人
    2021-01-14 09:27

    Well the Backslash (\) in Linux generally means a escape character. So in your case the backslash is escaping strings. Try with a cd "D:\Patches\afterWGComment.txt" and you can see the difference.

提交回复
热议问题