* tramp error with filenames with spaces
@ 2010-02-06 17:53 Mirko
2010-02-07 20:22 ` Michael Albinus
` (2 more replies)
0 siblings, 3 replies; 14+ messages in thread
From: Mirko @ 2010-02-06 17:53 UTC (permalink / raw)
To: help-gnu-emacs
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?
Thank you,
Mirko
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: tramp error with filenames with spaces
2010-02-06 17:53 tramp error with filenames with spaces Mirko
@ 2010-02-07 20:22 ` Michael Albinus
[not found] ` <mailman.842.1265574585.14305.help-gnu-emacs@gnu.org>
2010-02-09 23:19 ` Barrie
2 siblings, 0 replies; 14+ messages in thread
From: Michael Albinus @ 2010-02-07 20:22 UTC (permalink / raw)
To: Mirko; +Cc: help-gnu-emacs
Mirko <mvukovic@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.
^ permalink raw reply [flat|nested] 14+ messages in thread
[parent not found: <mailman.842.1265574585.14305.help-gnu-emacs@gnu.org>]
* Re: tramp error with filenames with spaces
[not found] ` <mailman.842.1265574585.14305.help-gnu-emacs@gnu.org>
@ 2010-02-08 13:57 ` Mirko
2010-02-08 15:23 ` Michael Albinus
[not found] ` <mailman.865.1265642608.14305.help-gnu-emacs@gnu.org>
0 siblings, 2 replies; 14+ messages in thread
From: Mirko @ 2010-02-08 13:57 UTC (permalink / raw)
To: help-gnu-emacs
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
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: tramp error with filenames with spaces
2010-02-06 17:53 tramp error with filenames with spaces Mirko
2010-02-07 20:22 ` Michael Albinus
[not found] ` <mailman.842.1265574585.14305.help-gnu-emacs@gnu.org>
@ 2010-02-09 23:19 ` Barrie
2010-02-10 13:43 ` Mirko
2 siblings, 1 reply; 14+ messages in thread
From: Barrie @ 2010-02-09 23:19 UTC (permalink / raw)
To: help-gnu-emacs
Try enclosing the filename in single quotes.
Barrie
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2010-02-10 13:43 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-06 17:53 tramp error with filenames with spaces Mirko
2010-02-07 20:22 ` Michael Albinus
[not found] ` <mailman.842.1265574585.14305.help-gnu-emacs@gnu.org>
2010-02-08 13:57 ` Mirko
2010-02-08 15:23 ` Michael Albinus
[not found] ` <mailman.865.1265642608.14305.help-gnu-emacs@gnu.org>
2010-02-08 17:10 ` Mirko
2010-02-08 19:48 ` Michael Albinus
2010-02-08 20:49 ` Drew Adams
2010-02-08 21:17 ` Michael Albinus
2010-02-08 21:19 ` Drew Adams
[not found] ` <mailman.877.1265663994.14305.help-gnu-emacs@gnu.org>
2010-02-09 13:11 ` Mirko
2010-02-09 14:19 ` Michael Albinus
[not found] ` <mailman.874.1265662287.14305.help-gnu-emacs@gnu.org>
2010-02-08 21:17 ` Mirko
2010-02-09 23:19 ` Barrie
2010-02-10 13:43 ` Mirko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).