英文:
Tramp fails for filename containing colon
问题
Emacs的Tramp模式在文件名中包含冒号时无法获取远程文件。(适用于远程服务器上的其他文件名。)手册中没有关于冒号的任何内容,只有“不允许包含与方法名称相同的主机名的远程文件名”,但这不适用于这里的情况。已尝试转义冒号但未成功。是否有人有解决方案?
FYI使用的命令是:
emacs /ssh:servername.net/~/TRAILS/AMoleraSP:_Beach_Trail.gpx
英文:
Tramp mode of emacs fails to get remote file when the filename contains a colon. (Works for other filenames on remote server.) Cannot see anything about colons in
manual, only 'A remote file name containing a host name, which is the same string as a method name, is not allowed', which is not the case here. Have tried escaping colon without success. Does anyone have a solution?
FYI command used was:
emacs /ssh:servername.net/~/TRAILS/AMoleraSP:_Beach_Trail.gpx
答案1
得分: 0
远程文件名的语法错误,您漏掉了主机名后的冒号。而且有一个多余的斜杠。请尝试:
emacs /ssh:servername.net:~/TRAILS/AMoleraSP:_Beach_Trail.gpx
英文:
The remote file name syntax is wrong, you miss the colon after the host name. And there is a superfluous slash. Try
emacs /ssh:servername.net:~/TRAILS/AMoleraSP:_Beach_Trail.gpx
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论