From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mirko Newsgroups: gmane.emacs.help Subject: Re: tramp error with filenames with spaces Date: Mon, 8 Feb 2010 05:57:34 -0800 (PST) Organization: http://groups.google.com Message-ID: <4f03277f-cbef-436a-803c-c58a393fc64a@u9g2000yqb.googlegroups.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1265640058 11928 80.91.229.12 (8 Feb 2010 14:40:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 8 Feb 2010 14:40:58 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Feb 08 15:40:51 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 1NeUn2-0000re-EJ for geh-help-gnu-emacs@m.gmane.org; Mon, 08 Feb 2010 15:40:40 +0100 Original-Received: from localhost ([127.0.0.1]:59423 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NeUn1-0007gz-QY for geh-help-gnu-emacs@m.gmane.org; Mon, 08 Feb 2010 09:40:39 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!postnews.google.com!u9g2000yqb.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 114 Original-NNTP-Posting-Host: 208.218.238.20 Original-X-Trace: posting.google.com 1265637454 9762 127.0.0.1 (8 Feb 2010 13:57:34 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 8 Feb 2010 13:57:34 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: u9g2000yqb.googlegroups.com; posting-host=208.218.238.20; posting-account=yS7ZzQoAAACbDncxMo9UeCyhsLtcDWPM User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:176669 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:71737 Archived-At: On Feb 7, 3:22=A0pm, Michael Albinus wrote: > Mirko writes: > > Hi, > > > I am using tramp to access files on a RHEL5 machine from a 23.1 emacs > > running on windows xp. > > > Tramp could not display a directory where a filename had a space. =A0Th= e > > file in question was `test map.mm', and the debug trace contained the > > following: > > > stat: cannot stat `test': No such file or directory > > stat: cannot stat `map.mm': No such file or directory > > > I did not see in the documentation whether tramp can handle filenames > > with spaces. =A0Is that the case? > > It should be able to handle such file names. And I could not reproduce > the problem here. > > Could you, please, apply > > =A0 (setq tramp-verbose 10) > > Then rerun the test, and show the resulting Tramp debug buffer. > > > Thank you, > > > Mirko > > Best regards, Michael. I was going to send a bug report, but it contains host names, and I will not post that on a public forum. I am including the contents of the debug buffer. I created a ~/tmp/test-dir with a single file `test file.txt'. (setq tramp-verbose >7) produced a huge debug buffer. Here are the first few items in it: 08:54:22 tramp-flush-file-property (8) # /home/mv/my-software-add-ons/ 08:54:22 tramp-flush-file-property (8) # /home/mv/my-software-add-ons/ 08:54:22 tramp-flush-file-property (8 ..... Interestingly, /home/mv/my-software-add-ons are not in the directory path of the test-dir whose contents I am trying to list. Here are the debug buffer contents at verbosity level 7: 08:48:37 tramp-get-connection-property (7) # test test 08:48:37 tramp-get-connection-property (7) # process-name nil 08:48:37 tramp-get-connection-property (7) # last-cmd-time (19312 5666 749000) 08:48:37 tramp-get-connection-property (7) # process-name nil 08:48:37 tramp-get-connection-property (7) # remote-echo nil 08:48:37 tramp-send-command (6) # test -d /home/mv/tmp/test-dir 2>/dev/ null; echo tramp_exit_status $? 08:48:37 tramp-get-connection-property (7) # process-name nil 08:48:37 tramp-get-connection-property (7) # chunksize 0 08:48:37 tramp-set-connection-property (7) # last-cmd-time (19312 5685 577000) 08:48:37 tramp-get-connection-property (7) # process-buffer nil 08:48:37 tramp-get-connection-property (7) # check-remote-echo nil 08:48:37 tramp-get-connection-property (7) # check-remote-echo nil 08:48:37 tramp-get-connection-property (7) # check-remote-echo nil 08:48:37 tramp-get-connection-property (7) # check-remote-echo nil 08:48:37 tramp-wait-for-regexp (6) # tramp_exit_status 0 ///1fe20ba3f8a83a4d9d012732d0944208 08:48:37 tramp-get-connection-property (7) # process-buffer nil 08:48:37 tramp-get-connection-property (7) # stat \stat 08:48:37 tramp-handle-directory-files-and-attributes-with-stat (5) # directory-files-and-attributes with stat: /home/mv/tmp/test-dir/ 08:48:37 tramp-get-connection-property (7) # ls /bin/ls 08:48:37 tramp-get-connection-property (7) # stat \stat 08:48:37 tramp-get-connection-property (7) # process-name nil 08:48:37 tramp-get-connection-property (7) # last-cmd-time (19312 5685 577000) 08:48:37 tramp-get-connection-property (7) # process-name nil 08:48:37 tramp-get-connection-property (7) # remote-echo nil 08:48:37 tramp-send-command (6) # cd /home/mv/tmp/test-dir/; echo "("; (/bin/ls -a | xargs \stat -c '("%n" ("%N") %h "%U" "%G" %X.0 %Y.0 %Z.0 %s.0 "%A" t %i.0 -1)'); echo ")" 2>/dev/null; echo tramp_exit_status $? 08:48:37 tramp-get-connection-property (7) # process-name nil 08:48:37 tramp-get-connection-property (7) # chunksize 0 08:48:37 tramp-set-connection-property (7) # last-cmd-time (19312 5685 640000) 08:48:37 tramp-get-connection-property (7) # process-buffer nil 08:48:37 tramp-get-connection-property (7) # check-remote-echo nil 08:48:37 tramp-get-connection-property (7) # check-remote-echo nil 08:48:37 tramp-get-connection-property (7) # check-remote-echo nil 08:48:37 tramp-get-connection-property (7) # check-remote-echo nil 08:48:37 tramp-wait-for-regexp (6) # ( ("." ("`.'") 2 "mv" "mv" 1265636917.0 1265636677.0 1265636677.0 4096.0 "drwxr-xr-x" t 12715623.0 -1) (".." ("`..'") 3 "mv" "mv" 1265636642.0 1265636647.0 1265636647.0 4096.0 "drwxr-xr-x" t 8126883.0 -1) stat: cannot stat `some': No such file or directory stat: cannot stat `file.txt': No such file or directory ) tramp_exit_status 0 ///1fe20ba3f8a83a4d9d012732d0944208 08:48:37 tramp-get-connection-property (7) # process-buffer nil 08:48:37 tramp-get-connection-property (7) # process-buffer nil 08:48:37 tramp-get-connection-property (7) # gid-string mv 08:48:37 tramp-get-connection-property (7) # gid-string mv