即使没有必要,请尝试以下操作:
/c/Windows/System32/cmd.exe //c 'start .'
Run Code Online (Sandbox Code Playgroud)
start
是位于内部cmd.exe
的命令,因此必须使用调用cmd /c
(并且Git Bash显然需要将 /
字符加倍。要被识别为cmd
-style选项前缀字符)。
但是,是它一个shell脚本包装- /usr/bin/start
-它可以实现这个要求。
就您而言,此shell脚本意外地抱怨找不到cmd
,即使默认情况下/c/WINDOWS/system32
应在您的$PATH
环境变量中-请检查该变量并查看是否在某处意外地对其进行了修改。
$PATH
最初是在中定义的/etc/profile
,但可以在中进行覆盖/修改~/.bash_profile
。
/etc/profile
在评论中还包含有用的链接:
# Some resources...
# Customizing Your Shell: http://www.dsl.org/cookbook/cookbook_5.html#SEC69
# Consistent BackSpace and Delete Configuration:
# http://www.ibb.net/~anne/keyboard.html
# The Linux Documentation Project: http://www.tldp.org/
# The Linux Cookbook: http://www.tldp.org/LDP/linuxcookbook/html/
# Greg's Wiki http://mywiki.wooledge.org/
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
5831 次 |
最近记录: |