From: Michael Albinus <michael.albinus@tieto.com>
To: Andrea Crotti <andrea.crotti.0@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: tramp & numberp
Date: Mon, 25 Oct 2010 09:08:15 +0200 [thread overview]
Message-ID: <87vd4qg36o.fsf@gmx.de> (raw)
In-Reply-To: m1iq0rbmiz.fsf@ip1-201.halifax.rwth-aachen.de
Andrea Crotti <andrea.crotti.0@gmail.com> 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.
next prev parent reply other threads:[~2010-10-25 7:08 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-24 14:07 tramp & numberp Andrea Crotti
2010-10-24 14:12 ` Andrea Crotti
2010-10-24 15:59 ` Michael Albinus
2010-10-24 16:06 ` Andrea Crotti
2010-10-24 16:09 ` Andrea Crotti
2010-10-25 7:08 ` Michael Albinus [this message]
2010-10-26 9:11 ` Andrea Crotti
2010-10-26 10:47 ` Andrea Crotti
2010-10-26 12:21 ` Michael Albinus
2010-10-26 12:26 ` Daniel Pittman
2010-10-26 12:20 ` Michael Albinus
2010-10-26 15:27 ` Andrea Crotti
2010-10-26 15:48 ` Michael Albinus
2010-10-27 11:31 ` Michael Albinus
2010-10-27 12:02 ` Andrea Crotti
2010-10-25 7:12 ` Andrea Crotti
2010-10-25 9:36 ` Michael Albinus
2010-10-25 11:16 ` Andrea Crotti
2010-10-25 11:51 ` Michael Albinus
2010-10-25 12:26 ` Andrea Crotti
2010-10-25 12:40 ` Michael Albinus
2010-10-25 12:45 ` Andrea Crotti
2010-10-25 13:54 ` Michael Albinus
2010-10-25 15:01 ` Andrea Crotti
2010-10-25 15:33 ` Michael Albinus
2010-10-25 15:41 ` Andrea Crotti
2010-10-25 18:30 ` Michael Albinus
2010-10-26 8:14 ` Andrea Crotti
2010-10-26 8:52 ` Michael Albinus
2010-10-25 12:48 ` Andrea Crotti
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87vd4qg36o.fsf@gmx.de \
--to=michael.albinus@tieto.com \
--cc=andrea.crotti.0@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).