help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tramp error with filenames with spaces


From: Mirko
Subject: Re: tramp error with filenames with spaces
Date: Mon, 8 Feb 2010 05:57:34 -0800 (PST)
User-agent: G2/1.0

On Feb 7, 3:22 pm, Michael Albinus <michael.albi...@gmx.de> wrote:
> Mirko <mvuko...@nycap.rr.com> 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.  The
> > 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.  Is that the case?
>
> It should be able to handle such file names. And I could not reproduce
> the problem here.
>
> Could you, please, apply
>
>   (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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]