all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Mirko <mvukovic@nycap.rr.com>
To: help-gnu-emacs@gnu.org
Subject: Re: tramp error with filenames with spaces
Date: Mon, 8 Feb 2010 05:57:34 -0800 (PST)	[thread overview]
Message-ID: <4f03277f-cbef-436a-803c-c58a393fc64a@u9g2000yqb.googlegroups.com> (raw)
In-Reply-To: mailman.842.1265574585.14305.help-gnu-emacs@gnu.org

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


  parent reply	other threads:[~2010-02-08 13:57 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4f03277f-cbef-436a-803c-c58a393fc64a@u9g2000yqb.googlegroups.com \
    --to=mvukovic@nycap.rr.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.