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 <[EMAIL PROTECTED]>
* 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, [EMAIL PROTECTED]
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."
_______________________________________________
Tramp-devel mailing list
[EMAIL PROTECTED]
http://mail.nongnu.org/mailman/listinfo/tramp-devel