From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: tramp mode not working on OSX with dev HEAD Date: Mon, 08 Mar 2010 17:58:13 +0100 Message-ID: <876356wy1m.fsf@gmx.de> References: <86r5ny1kl6.fsf@blue.stonehenge.com> <87iq9998rf.fsf@gmx.de> <863a0bu572.fsf@blue.stonehenge.com> <87d3zfgs4q.fsf@gmx.de> <86lje2suor.fsf@blue.stonehenge.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1268067511 8289 80.91.229.12 (8 Mar 2010 16:58:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 8 Mar 2010 16:58:31 +0000 (UTC) Cc: emacs-devel@gnu.org To: merlyn@stonehenge.com (Randal L. Schwartz) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 08 17:58:27 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NogHj-000820-3y for ged-emacs-devel@m.gmane.org; Mon, 08 Mar 2010 17:58:27 +0100 Original-Received: from localhost ([127.0.0.1]:38739 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NogHi-0004f3-LS for ged-emacs-devel@m.gmane.org; Mon, 08 Mar 2010 11:58:26 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NogHd-0004eu-TV for emacs-devel@gnu.org; Mon, 08 Mar 2010 11:58:21 -0500 Original-Received: from [140.186.70.92] (port=48493 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NogHd-0004ek-3e for emacs-devel@gnu.org; Mon, 08 Mar 2010 11:58:21 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NogHc-0003l2-4r for emacs-devel@gnu.org; Mon, 08 Mar 2010 11:58:20 -0500 Original-Received: from mail.gmx.net ([213.165.64.20]:39791) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1NogHb-0003kf-91 for emacs-devel@gnu.org; Mon, 08 Mar 2010 11:58:20 -0500 Original-Received: (qmail invoked by alias); 08 Mar 2010 16:58:17 -0000 Original-Received: from p4FC002F7.dip0.t-ipconnect.de (EHLO LKG29808F.local) [79.192.2.247] by mail.gmx.net (mp045) with SMTP; 08 Mar 2010 17:58:17 +0100 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1/NblddXNfN8ljkIiimxK6VNUS+gTP00dmyPNiYRz yWiLTbManMagQz User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (gnu/linux) X-Y-GMX-Trusted: 0 X-FuHaFi: 0.46000000000000002 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:121738 Archived-At: merlyn@stonehenge.com (Randal L. Schwartz) writes: > Sorry.. I did a few things that worked (finding a directory works). > I then truncated the logs, and failed on finding a file that was there. No problem. The traces can be analyzed now. If you want to do it yourself, check for the level (6) traces. These are the sent commands, and their reply. 07:20:10.701231 tramp-send-command (6) # exec env ENV='' PROMPT_COMMAND='' PS1=\#\$\ PS2='' PS3='' /bin/sh 07:20:10.816572 tramp-wait-for-regexp (6) # #$ On your remote host, /bin/sh has been opened. The next commands are fine. Until here: 07:20:12.899867 tramp-send-command (6) # tramp_perl_file_name_all_completions () { /usr/bin/perl -e 'sub case { my $str = shift; if ($ARGV[2]) { return lc($str); } else { return $str; } } opendir(d, $ARGV[0]) || die("$ARGV[0]: $!\nfail\n"); @files = readdir(d); closedir(d); foreach $f (@files) { if (case(substr($f, 0, length($ARGV[1]))) eq case($ARGV[1])) { if (-d "$ARGV[0]/$f") { print "$f/\n"; } else { print "$f\n"; } } } print "ok\n" ' "$1" "$2" "$3" 2>/dev/null } 2>/dev/null; echo tramp_exit_status $? Tramp tries to declare a script in the shell. 07:20:13.748322 tramp-wait-for-regexp (1) # File error: Process has died And there was an error; the shell died. It looks like your shell does not like bourne-shell syntax. Please check the following: Open a terminal on the remote host, and call "/bin/sh". Then paste the following lines literally: --8<---------------cut here---------------start------------->8--- tramp_perl_file_name_all_completions () { /usr/bin/perl -e 'sub case { my $str = shift; if ($ARGV[2]) { return lc($str); } else { return $str; } } opendir(d, $ARGV[0]) || die("$ARGV[0]: $!\nfail\n"); @files = readdir(d); closedir(d); foreach $f (@files) { if (case(substr($f, 0, length($ARGV[1]))) eq case($ARGV[1])) { if (-d "$ARGV[0]/$f") { print "$f/\n"; } else { print "$f\n"; } } } print "ok\n" ' "$1" "$2" "$3" 2>/dev/null } --8<---------------cut here---------------end--------------->8--- See, whether there is an error. If there is no error, test the script in the shell: --8<---------------cut here---------------start------------->8--- tramp_perl_file_name_all_completions /tmp --8<---------------cut here---------------end--------------->8--- That's it. Best regards, Michael.