tramp-devel
[Top][All Lists]
Advanced

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

Re: tramp (2.1.17-pre); Nothing happens, waiting for something after "fo


From: Michael Albinus
Subject: Re: tramp (2.1.17-pre); Nothing happens, waiting for something after "found remote shell prompt"
Date: Wed, 17 Nov 2010 11:22:10 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

"Fabrice" <address@hidden> writes:

> Hi Michael,

Hi Fabrice,

>> It means that your bash does not work with Tramp.
>
> Could you be a more explicit on what it means "does not work with Tramp"? Is
> there something to report to Cygwin? Any idea on what or how to test? Is it
> the fact PS1 is not applied?

Yes, I was speaking about PS1 setting.

> Though, I could have found the culprit: me (?). I set `PS1' is set in my
> `.bashrc'. Hence, it overrides the `PS1' you set just before calling
> `\bash'[1].
>
> But, does that mean I can't set my `PS1' in my `.bashrc'? Should I do it
> soemwhere else?

Tramp sets the $TERM environment variable. So you could something like

  [ $TERM = "dumb" ] && PS1='$ '

> Now, I just commented the setting of `PS1' in my remote `.bashrc'... and that
> just works! So setting `PS1' in `.bashrc' is confirmed to be the problem. Why?

Tramp needs a special prompt, in order to distinguish command output
and, hmm, the prompt. Overriding this setting confuses Tramp.

> OK, now it almost perfectly works: I can access a lot of remote files, but not
> all. For example, when entering in the `server' directory, I get:
>
> byte-code: `((test -e /cygdrive/d/PFlowAcc/server || test -h
> /cygdrive/d/PFlowAcc/server) && \stat -c '(("%N") %h %u %g %X.0 %Y.0 %Z.0 %s.0
> "%A" t %i.0 -1)' /cygdrive/d/PFlowAcc/server || echo nil)' does not return a
> valid Lisp expression: `(("`/cygdrive/d/PFlowAcc/server'") 1 4294967295
> 4294967295 1289987025.0 1289948620.0 1289948620.0 159744.0 "drwxrwxrwx" t
> 121034239985590299.0 -1) '

Hmm, it returns strange uid and gid (4294967295). You 'll see it when
calling on the remote host

  \stat -c ' %u %g' /cygdrive/d/PFlowAcc/server

What do you see when calling this:

  ls -dn /cygdrive/d/PFlowAcc/server

> Though, it looks weird in the `dired' buffer:
>
>   /plink:address@hidden:/cygdrive/d/PFlowAcc:
>   total 172
>   drwxrwxrwx  1 Administrators None          8192 2010-11-15 17:13 ./
>   drwxrwxrwx  1 Administrators root          4096 2010-11-05 15:18 ../
>   drwxrwxrwx  1 Administrators ????????         0 2008-12-10 17:40 2008-12-10/
>   drwxrwxrwx  1 ????????       ????????         0 2007-08-16 13:36 Aspadmin/
>   drwxrwxrwx  1 ????????       ????????    159744 2010-11-17 00:03 server/
>   drwxr-xr-x  1 fni            mkgroup_l_d   4096 2010-11-15 17:13 
> sharedfiles/
>
> Do you have any idea why this is failing?

That's because of not knowing uid/gid correctly.

> Footnotes:
> [1] FMI, what's the difference between `\bash' and `bash'?

\bash would suppress any alias "bash" you might have declared, calling
the program "bash" instead.

> Best regards,
>   Fabrice

Best regards, Michael.



reply via email to

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