From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.help Subject: Re: tramp & numberp Date: Mon, 25 Oct 2010 09:08:15 +0200 Message-ID: <87vd4qg36o.fsf@gmx.de> References: <871v7f37lj.fsf@gmx.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1288013779 7154 80.91.229.12 (25 Oct 2010 13:36:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 25 Oct 2010 13:36:19 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Andrea Crotti Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Oct 25 15:36:15 2010 Return-path: Envelope-to: geh-help-gnu-emacs@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 1PANDV-0001mL-RA for geh-help-gnu-emacs@m.gmane.org; Mon, 25 Oct 2010 15:36:11 +0200 Original-Received: from localhost ([127.0.0.1]:37474 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PAN9X-00015W-Jb for geh-help-gnu-emacs@m.gmane.org; Mon, 25 Oct 2010 09:31:55 -0400 Original-Received: from [140.186.70.92] (port=50375 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PAHQ2-0005sZ-MN for help-gnu-emacs@gnu.org; Mon, 25 Oct 2010 03:24:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PAHAL-0005TY-HL for help-gnu-emacs@gnu.org; Mon, 25 Oct 2010 03:08:22 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.22]:46954 helo=mail.gmx.net) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PAHAL-0005T2-6t for help-gnu-emacs@gnu.org; Mon, 25 Oct 2010 03:08:21 -0400 Original-Received: (qmail invoked by alias); 25 Oct 2010 07:08:18 -0000 Original-Received: from p4FC18D33.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [79.193.141.51] by mail.gmx.net (mp008) with SMTP; 25 Oct 2010 09:08:18 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1+8/dJGqdu8pZzu2WMFxsA6P+gqpe4cHnKwDOlHaD 0RxTYSRCyqhfhv User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Mon, 25 Oct 2010 09:30:49 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:75219 Archived-At: Andrea Crotti writes: > With > GNU Emacs 23.2.1 (x86_64-apple-darwin10.3.0, NS apple-appkit-1038.29) of > 2010-05-09 on linc > I can't even find the file tramp-sh.el... Yes, that patch I've referred to was for Tramp 2.2. For Tramp 2.1.18 (bundled with Emacs 23.2), you might apply the following patch: --8<---------------cut here---------------start------------->8--- *** ~/src/emacs-23/lisp/net/tramp.el.~99642~ 2010-10-25 09:00:04.640285001 +0200 --- ~/src/emacs-23/lisp/net/tramp.el 2010-10-21 08:24:16.448917001 +0200 *************** *** 2816,2822 **** (tramp-send-command-and-read vec (format ! "((%s %s || %s -h %s) && %s -c '((\"%%N\") %%h %s %s %%X.0 %%Y.0 %%Z.0 %%s.0 \"%%A\" t %%i.0 -1)' %s || echo nil)" (tramp-get-file-exists-command vec) (tramp-shell-quote-argument localname) (tramp-get-test-command vec) --- 2816,2822 ---- (tramp-send-command-and-read vec (format ! "( (%s %s || %s -h %s) && %s -c '( (\"%%N\") %%h %s %s %%Xe0 %%Ye0 %%Ze0 %%se0 \"%%A\" t %%ie0 -1)' %s || echo nil)" (tramp-get-file-exists-command vec) (tramp-shell-quote-argument localname) (tramp-get-test-command vec) *************** *** 3223,3229 **** ;; but it does not work on all remote systems. Therefore, we ;; quote the filenames via sed. "cd %s; echo \"(\"; (%s -a | sed -e s/\\$/\\\"/g -e s/^/\\\"/g | xargs " ! "%s -c '(\"%%n\" (\"%%N\") %%h %s %s %%X.0 %%Y.0 %%Z.0 %%s.0 \"%%A\" t %%i.0 -1)'); " "echo \")\"") (tramp-shell-quote-argument localname) (tramp-get-ls-command vec) --- 3223,3229 ---- ;; but it does not work on all remote systems. Therefore, we ;; quote the filenames via sed. "cd %s; echo \"(\"; (%s -a | sed -e s/\\$/\\\"/g -e s/^/\\\"/g | xargs " ! "%s -c '(\"%%n\" (\"%%N\") %%h %s %s %%Xe0 %%Ye0 %%Ze0 %%se0 \"%%A\" t %%ie0 -1)'); " "echo \")\"") (tramp-shell-quote-argument localname) (tramp-get-ls-command vec) --8<---------------cut here---------------end--------------->8--- Best regards, Michael.