bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#33791: 26.1; Eshell on Windows connecting to GNU/Linux machine using


From: Jordan Wilson
Subject: bug#33791: 26.1; Eshell on Windows connecting to GNU/Linux machine using TRAMP and plink: env: ‘c:/home/jordan/test.sh’: No such file or directory
Date: Sun, 23 Dec 2018 12:40:14 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (windows-nt)

Hmm...seems the bug I'm experiencing is more low-lying than eshell. I've
followed it down to C-level. eshell/cd -> cd -> locate-file ->
locate-file-internal. In my case both problems arise from "c:"
being prepended somewhere.

Evaluating:

     (locate-file-internal ".." '("./") nil (lambda (f) (message f)))

while in "/plink:jordan@domain.com:/home/jordan/test" returns
"c:/plink:jordan@domain.com:/home/jordan". Whilst

     (locate-file-internal ".."
            '("/plink:jordan@domain.com:/home/jordan/test")
             nil (lambda (f) (message f)))

correctly returns "/plink:jordan@domain.com:/home/jordan".

It seems the problem is something to do with converting from a
relative to absolute path. Eval'ing (expand-file-name "..") correctly
returns "/plink:jordan@domain.com:/home/jordan", though. Strange.

-- 
Jordan Wilson
    Sent from Gnus v5.13, GNU Emacs 26.1





reply via email to

[Prev in Thread] Current Thread [Next in Thread]