混帐击不看我的道路 [英] Git Bash doesn't see my PATH

查看:90
本文介绍了混帐击不看我的道路的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用的Git的Bash(在Windows上),我不能运行,而无需指定其完整路径任何可执行文件,但它位于这是在我的PATH变量的文件夹。看起来庆典不承认它。为什么?我能解决这个问题?

When I use Git Bash (on Windows), I cannot run any executable without specifying its full path, although it is located in a folder which is in my PATH variable. Looks like bash doesn't recognize it. Why? Can I fix it?

推荐答案

明白了。作为Windows用户,我已经习惯没有扩展名类型的可执行名称。就我而言,我想执行一个名为 cup.bat 文件。在Windows命令行下,就足够了。击不以这种方式工作,它想的全名。键入 cup.bat 解决了这个问题。 (我无法虽然运行该文件,因为显然的bash无法理解它的内容)

Got it. As a Windows user, I'm used to type executable names without extensions. In my case, I wanted to execute a file called cup.bat. In a Windows shell, typing cup would be enough. Bash doesn't work this way, it wants the full name. Typing cup.bat solved the problem. (I wasn't able to run the file though, since apparently bash couldn't understand its contents)

还有一个原因切换到豪华-git的。

One more reason to switch to posh-git..

感谢@汤姆指着我正确的方向。

Thanks @Tom for pointing me to the right direction.

这篇关于混帐击不看我的道路的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆