[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tramp & numberp
From: |
Michael Albinus |
Subject: |
Re: tramp & numberp |
Date: |
Mon, 25 Oct 2010 09:08:15 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
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.
- Re: tramp & numberp, (continued)
- Re: tramp & numberp, Michael Albinus, 2010/10/25
- Re: tramp & numberp, Andrea Crotti, 2010/10/25
- Re: tramp & numberp, Michael Albinus, 2010/10/25
- Re: tramp & numberp, Andrea Crotti, 2010/10/25
- Re: tramp & numberp, Michael Albinus, 2010/10/25
- Re: tramp & numberp, Andrea Crotti, 2010/10/25
- Re: tramp & numberp, Michael Albinus, 2010/10/25
- Re: tramp & numberp, Andrea Crotti, 2010/10/26
- Re: tramp & numberp, Michael Albinus, 2010/10/26
- Re: tramp & numberp, Andrea Crotti, 2010/10/25
- Re: tramp & numberp,
Michael Albinus <=
- Re: tramp & numberp, Andrea Crotti, 2010/10/26
- Re: tramp & numberp, Andrea Crotti, 2010/10/26
- Re: tramp & numberp, Michael Albinus, 2010/10/26
- Re: tramp & numberp, Daniel Pittman, 2010/10/26
- Re: tramp & numberp, Michael Albinus, 2010/10/26
- Re: tramp & numberp, Andrea Crotti, 2010/10/26
- Re: tramp & numberp, Michael Albinus, 2010/10/26
- Re: tramp & numberp, Michael Albinus, 2010/10/27
- Re: tramp & numberp, Andrea Crotti, 2010/10/27