How can I execute commands in git-bash in Windows which are located in a folder with spaces ie “Program Files”?

后端 未结 4 1043
灰色年华
灰色年华 2021-01-12 05:43

When I use git bash, from time to time I want to invoke a command which is on my $PATH ( well actually on my %PATH% ) but if the command resides s

4条回答
  •  不思量自难忘°
    2021-01-12 06:09

    Commands in git-bash accept paths within double quotes

    "C:\Program Files\whatever\aCmd.exe"

    or back slash for scaping the blank space

    c/Program\ Files/whatever/aCmd.exe

    Hope it helps!

提交回复
热议问题