CYGWIN=nodosfilewarning 对 cygwin 警告没有帮助
当我尝试在 Emacs 23.2.1 下对 CVS 管理的文件使用 ediff-revision
时,我在 *ediff-errors*
框架中收到以下错误,而不是直接开始 ediff 结果:
cygwin warning:
MS-DOS style path detected: c:/Users/BILL/AppData/Local/Temp/misc.cpp.~1.10~
Preferred POSIX equivalent is: /cygdrive/c/Users/BILL/AppData/Local/Temp/misc.cpp.~1.10~
CYGWIN environment variable option "nodosfilewarning" turns off this warning.
Consult the user's guide for more details about POSIX paths:
http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
我的问题是我已经设置了 CYGWIN 环境变量选项“nodosfilewarning”,所以我不知道为什么会收到此错误。
事实上,我可以从同一 Emacs 实例下的劣质 shell 验证这一点:
> set | grep -i nodos
CYGWIN=nodosfilewarning
我正在 Windows 7 下运行 Cygwin 1.7.9-1,以防这可能相关(并且在从 Cygwin 1.5 升级到1.7)。
知道如何消除这个错误吗?
PS 随后对 ediff-revision
的调用成功,但不会触发此警告。
When I try to use ediff-revision
under Emacs 23.2.1 for a CVS-managed file, I receive the following error in the *ediff-errors*
frame, instead of commencing directly to the ediff results:
cygwin warning:
MS-DOS style path detected: c:/Users/BILL/AppData/Local/Temp/misc.cpp.~1.10~
Preferred POSIX equivalent is: /cygdrive/c/Users/BILL/AppData/Local/Temp/misc.cpp.~1.10~
CYGWIN environment variable option "nodosfilewarning" turns off this warning.
Consult the user's guide for more details about POSIX paths:
http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
My problem is that I have already set that CYGWIN environment variable option "nodosfilewarning", so I have no idea why I am receiving this error.
In fact, I can verify this right from an inferior shell under the same Emacs instance:
> set | grep -i nodos
CYGWIN=nodosfilewarning
I am running Cygwin 1.7.9-1 under Windows 7, in case this may be relevant (and I never had this problem before upgrading from Cygwin 1.5 to 1.7).
Any idea how to get rid of this error?
P.S. A subsequent call to ediff-revision
succeeds without triggering this warning.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
当调用 Cygwin 进程树中的第一个进程时,将解析 CYGWIN 变量。因此,将其设置在 .bashrc 或类似的内容中为时已晚。设置它的好地方是在全局 Windows 环境中,在“控制面板”->“系统”->“高级”->“环境变量”下。
The CYGWIN variable is parsed when the first process in a Cygwin process tree is invoked. Hence, setting it in
.bashrc
or something like that is too late. A good place to set it is in the global Windows environment, under Control Panel->System->Advanced->Environment Variables.我将
(setenv "CYGWIN" "nodosfilewarning")
添加到 setup-cygwin .el。这似乎解决了这个问题,而不会造成其他问题。我还为此提交了 Emacs bug #14541。I added
(setenv "CYGWIN" "nodosfilewarning")
to setup-cygwin.el. That seems to take care of the problem without, AFAICT, creating other problems. I also filed Emacs bug #14541 for this.在 emacs 中,您还可以:
作为更改 setup-cygwin.el 的直接替代方案。
From within emacs, you may also:
as an immediate alternative to altering setup-cygwin.el.