[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Fix for spaces in remote filenames
From: |
Andreas Schwab |
Subject: |
Fix for spaces in remote filenames |
Date: |
Tue, 30 Mar 2004 15:58:40 +0200 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (gnu/linux) |
When you type `l' in dired on a remote file name with spaces you get an
error because the name is not correctly quoted.
Andreas.
2004-03-30 Andreas Schwab <address@hidden>
* net/tramp.el (tramp-handle-insert-directory): Properly quote
file name also if not full-directory-p.
--- tramp.el.~1.42.~ 2004-03-01 11:02:58.000000000 +0100
+++ tramp.el 2004-03-30 15:54:11.303106590 +0200
@@ -3091,12 +3091,16 @@ This is like `dired-recursive-delete-dir
(format "%s %s %s"
(tramp-get-ls-command multi-method method user host)
switches
- (if full-directory-p
- ;; Add "/." to make sure we got complete dir
- ;; listing for symlinks, too.
- (concat (file-name-as-directory
- (file-name-nondirectory localname)) ".")
- (file-name-nondirectory localname)))))
+ (let ((name (if full-directory-p
+ ;; Add "/." to make sure we got complete dir
+ ;; listing for symlinks, too.
+ (concat (file-name-as-directory
+ (file-name-nondirectory localname))
+ ".")
+ (file-name-nondirectory localname))))
+ (if wildcard
+ name
+ (tramp-shell-quote-argument name))))))
(sit-for 1) ;needed for rsh but not ssh?
(tramp-wait-for-output))
;; The following let-binding is used by code that's commented
--
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Fix for spaces in remote filenames,
Andreas Schwab <=