Tramp在文件名中包含冒号时失败

huangapple go评论65阅读模式
英文:

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

huangapple
  • 本文由 发表于 2023年3月7日 11:11:14
  • 转载请务必保留本文链接:https://go.coder-hub.com/75657710.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定