查找:参数格式不正确 [英] Find: Parameter format not correct

查看:1208
本文介绍了查找:参数格式不正确的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不断听到这是cygwin的一个路径问题。这是防止emacs在我的cygwin内工作。当我执行find cli(不是bash / cygwin),我得到相同的错误,无论我输入什么。我读过这是一个问题,在cygwin中的路径创建,并且它应该预先自己的路径。

I keep hearing this is a path issue with cygwin. It is prevent emacs from working within my cygwin. When I execute find on the cli (not bash/cygwin) I get the same error not matter what I type. I've read this is a problem with path creation within cygwin and that it should be prepending itself to the path. As you can see it is doing that.

这是我的/ etc / profile

Here is my /etc/profile

PATH=/usr/local/bin:/usr/bin:/bin:$PATH
export PATH


推荐答案

问题是,像其他人一样,emacs使用windows提供的find.exe。要更改此设置,您需要更改%userprofile%.emacs文件。

Problem is that as everyone else stated, emacs is using find.exe provided by windows. To change this, you need to change your %userprofile%.emacs file.

由于没有人声明(甚至常见问题),此文件不会自动创建。进入选项>保存选项,迷你缓冲区(emacs底部的一行)将告诉你文件被写入的位置。

As nobody else states (even faq!), this file is not created automatically anymore. Go into Options > Save options the mini-buffer (one line at the bottom of emacs) will tell you where the file is being written to.

这行(你已经安装cygwin在c:\cygwin,对吧?):

Go in there and add this line (You've installed cygwin at c:\cygwin, right?):

(setq find-program "C:\\cygwin\\bin\\find.exe")

可能需要重新启动Emacs才能生效。

You may need to restart Emacs for this to take effect.

这篇关于查找:参数格式不正确的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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