The question posed to Kai would probably be better directed here... Please help.

Note: the remote system is a RedHat 7.2 box, I am connecting using "scp" method. Both 
ends use 'zsh' shell.  The basic problem is that when using cygwin/zsh as the basis 
for emacs and tramp, carriage returns mess up the connection (mostly for local 
commands created with 'concat' and 'format' lisp commnads, I think).

Thanks!

Yarek
-----Original Message-----
From: Kowalik, Yarek 
Sent: Monday, October 18, 2004 1:29 PM
To: Kowalik, Yarek; [EMAIL PROTECTED]
Subject: RE: tramp (2.1.1); tramp hangs on 'Setting shell prompt'

See the attachment for complete *debug-tramp.
 

-----Original Message-----
From: Kowalik, Yarek
Sent: Monday, October 18, 2004 1:17 PM
To: '[EMAIL PROTECTED]'
Subject: FW: tramp (2.1.1); tramp hangs on 'Setting shell prompt'

Hi Kai,

I hope this is a right place to send an email for help.  I seem to be having some 
problems with tramp, and I believe it is related to the 'concat' command: an extra 
carriage return that's silently added at the end of several command constructs is 
preventing tramp to work properly in my environment (emacs started from within 
cygwin's zsh).  

Can you please check if you know how to make emacs concat command work without adding 
the silent carriage return within tramp? 

Many thanks,

Yarek 

-----Original Message-----
From: Kowalik, Yarek
Sent: Monday, October 18, 2004 1:14 PM
To: 'Phil Suh'
Subject: RE: tramp (2.1.1); tramp hangs on 'Setting shell prompt'

I got a part way along the way in making tramp work. My setup is as follows:

1. cygwin, including zsh
2. starting emacs under cywin's zsh
3. changing the following in my .emacs:

(custom-set-variables
 '(tramp-encoding-command-switch "-c")
 '(tramp-encoding-shell "c:/unix/cygwin/bin/zsh.exe")
)

That seems to get me some way along, but, for some reason I think that lisp concat 
function is tripping me up, as it seems to be adding extra ^M in the concatenation, 
which trips tramp up.  See debug output here:

# Opening connection for [EMAIL PROTECTED] using scp...
# Waiting 60s for local shell to come up...
# Sending command `ssh yarek.desktop -l yarek  -e none; echo "Tramp" "connection" 
"closed"; sleep 1'
# Waiting for prompts from remote shell
# Waiting 60s for prompt from remote shell on host yarek.desktop # Looking for regexp 
"^.*\([pP]assword\|passphrase.*\):

# Looking for regexp ".*ogin: *" from remote shell # Looking for regexp "[$]* *" from 
remote shell # Found remote shell prompt on `yarek.desktop'
# Sending command to remote shell: unset HISTORY $ unset HISTORY # Sending command to 
remote shell: unset correct $ unset correct # Sending command to remote shell: unset 
autocorrect $ unset autocorrect $ exec env 'ENV=' 'PS1=$ ' /bin/sh # Waiting 30s for 
remote `/bin/sh' to come up...
env: /bin/sh
: No such file or directory
 
(that should be "^M" char after 'env:/bin/sh' above)

There are several commands after that that barf the same way, notably 'sleep 1' - and 
looking through tramp.el, all of them seem to be constructed with "concat".

Any thoughts?

Yarek

-----Original Message-----
From: Phil Suh [mailto:[EMAIL PROTECTED]
Sent: Monday, October 18, 2004 12:40 PM
To: Kowalik, Yarek
Subject: Re: tramp (2.1.1); tramp hangs on 'Setting shell prompt'

On Mon, 18 Oct 2004, Kowalik, Yarek wrote:
>  I am running into exactly the same problem as you are... did you 
> discover a fix for this?

yarek,

Sadly, no, I have not figured this out. I'm back to doing Japanese in BBEdit. I 
haven't given it a stab for awhile, though, I might try again. I liked Meadow a lot.



# Opening connection for [EMAIL PROTECTED] using scp...
# Waiting 60s for local shell to come up...
# Sending command `ssh yarek.desktop -l yarek  -e none; echo "Tramp" "connection" 
"closed"; sleep 1'
# Waiting for prompts from remote shell
# Waiting 60s for prompt from remote shell on host yarek.desktop
# Looking for regexp "^.*\([pP]assword\|passphrase.*\):? *" from remote shell
# Looking for regexp ".*ogin: *" from remote shell
# Looking for regexp "[$]* *" from remote shell
# Found remote shell prompt on `yarek.desktop'
# Sending command to remote shell: unset HISTORY
$ unset HISTORY
# Sending command to remote shell: unset correct
$ unset correct
# Sending command to remote shell: unset autocorrect
$ unset autocorrect
$ exec env 'ENV=' 'PS1=$ ' /bin/sh
# Waiting 30s for remote `/bin/sh' to come up...
env: /bin/sh
: No such file or directory
Tramp connection closed
sleep: invalid time interval `1
'
Try `sleep --help' for more information.
env: /bin/sh
: No such file or directory
Tramp connection closed
sleep: invalid time interval `1
'
Try `sleep --help' for more information.
# Setting up remote shell environment
$ stty -inlcr -echo kill '^U'
stty: standard input: Inappropriate ioctl for device
$ echo foo
foo
$ TERM=dumb; export TERM
export: not an identifier: TERM^M
# Determining coding system
$ echo foo ; echo bar
foo
bar
# Waiting 30s for `HISTFILE=$HOME/.tramp_history; HISTSIZE=1; export HISTFILE; export 
HISTSIZE'
$ HISTFILE=$HOME/.tramp_history; HISTSIZE=1; export HISTFILE; export HISTSIZE
# Waiting 30s for `set +o vi +o emacs'
$ set +o vi +o emacs
# Waiting 30s for `unset MAIL MAILCHECK MAILPATH'
$ unset MAIL MAILCHECK MAILPATH 1>/dev/null 2>/dev/null
# Waiting 30s for `unset CDPATH'
$ unset CDPATH
# Setting shell prompt
$ PS1='
///e4c477d4e530fc423e9c4273972e2219
'; PS2=''; PS3=''
_______________________________________________
Tramp-devel mailing list
[EMAIL PROTECTED]
http://lists.nongnu.org/mailman/listinfo/tramp-devel

Reply via email to