Bash in Git for Windows: Weirdness when running a command with CMD.exe /C with args

前端 未结 7 2256
后悔当初
后悔当初 2020-12-05 02:55

This is more of an annoyance rather than a problem but I would very much like to understand the semantics here.

All I want to do is to run an arbitrary command on a

7条回答
  •  死守一世寂寞
    2020-12-05 03:00

    After reading this article I've found solution which works for me:

    $ cat gvim.sh
    cmd << EOD
    gvim $@
    EOD
    $
    

    Windows 8.1, Git (version 1.9.5-preview20141217), GNU bash, version 3.1.20(4)-release (i686-pc-msys).

提交回复
热议问题