[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tramp on windows without access to cmd.exe
From: |
Vinh Nguyen |
Subject: |
Re: tramp on windows without access to cmd.exe |
Date: |
Mon, 7 Dec 2015 06:46:20 -0800 |
On Mon, Dec 7, 2015 at 6:40 AM, Vinh Nguyen <address@hidden> wrote:
>> With the native Windows Emacs, you could try to set
>> `tramp-encoding-shell' to the Windows name of such a cygwin shell, don't
>> know whether this works. You must also change
>> `tramp-encoding-command-switch' (to "-c") and
>> `tramp-encoding-command-interactive' (to "-i").
>
> Tried:
> (set 'tramp-encoding-shell "F:/bin/cygwin64/bin/mintty.exe")
> (set 'tramp-encoding-command-switch "-c")
> (set 'tramp-encoding-command-interactive "-i")
The -i for mintty actually refers to "icon", so that's probably why
it's erring out. Trying:
(set 'tramp-encoding-shell "F:/bin/cygwin64/bin/bash.exe")
(set 'tramp-encoding-command-switch "-c")
(set 'tramp-encoding-command-interactive "-i")
and got
Tramp: Opening connection for address@hidden using plink...
Tramp: Sending command `plink -l username -ssh server && exit || exit'
Tramp: Waiting for prompts from remote shell...
Store key in cache? (y/n) (y or n) y
Tramp: Waiting for prompts from remote shell...failed
Tramp: Opening connection for address@hidden using plink...failed
byte-code: Args out of range: 57, 281
In my tramp buffer, I get:
Last login: Wed Dec 2 10:46:08 2015 from 10.201.76.59
]0;address@hidden:~ address@hidden ~]$
So I think something is going on but not sure what.
-- Vinh