unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* 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

* 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-08 13:57   ` Mirko
@ 2010-02-08 15:23     ` Michael Albinus
       [not found]     ` <mailman.865.1265642608.14305.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 14+ messages in thread
From: Michael Albinus @ 2010-02-08 15:23 UTC (permalink / raw)
  To: Mirko; +Cc: help-gnu-emacs

Mirko <mvukovic@nycap.rr.com> writes:

> 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
> $?

Thanks, that's clear. It is fixed meanwhile (back in last summer); any
recent Emacs 23.2 pretest should give you a clean solution.

Best regards, Michael.




^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: tramp error with filenames with spaces
       [not found]     ` <mailman.865.1265642608.14305.help-gnu-emacs@gnu.org>
@ 2010-02-08 17:10       ` Mirko
  2010-02-08 19:48         ` Michael Albinus
  0 siblings, 1 reply; 14+ messages in thread
From: Mirko @ 2010-02-08 17:10 UTC (permalink / raw)
  To: help-gnu-emacs

On Feb 8, 10:23 am, Michael Albinus <michael.albi...@gmx.de> wrote:
> Mirko <mvuko...@nycap.rr.com> writes:
> > 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
> > $?
>
> Thanks, that's clear. It is fixed meanwhile (back in last summer); any
> recent Emacs 23.2 pretest should give you a clean solution.
>
> Best regards, Michael.

Thanks for looking into this.

I will wait for a windows build of 23.2 then.

Mirko


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: tramp error with filenames with spaces
  2010-02-08 17:10       ` Mirko
@ 2010-02-08 19:48         ` Michael Albinus
  2010-02-08 20:49           ` Drew Adams
       [not found]           ` <mailman.874.1265662287.14305.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 14+ messages in thread
From: Michael Albinus @ 2010-02-08 19:48 UTC (permalink / raw)
  To: Mirko; +Cc: help-gnu-emacs

Mirko <mvukovic@nycap.rr.com> writes:

> I will wait for a windows build of 23.2 then.

Rumours say it will be in March. If you want to start earlier, you might
try the prerelease at <http://alpha.gnu.org/gnu/emacs/pretest/windows/>

> Mirko

Best regards, Michael.




^ permalink raw reply	[flat|nested] 14+ messages in thread

* RE: tramp error with filenames with spaces
  2010-02-08 19:48         ` Michael Albinus
@ 2010-02-08 20:49           ` Drew Adams
  2010-02-08 21:17             ` Michael Albinus
       [not found]           ` <mailman.874.1265662287.14305.help-gnu-emacs@gnu.org>
  1 sibling, 1 reply; 14+ messages in thread
From: Drew Adams @ 2010-02-08 20:49 UTC (permalink / raw)
  To: 'Michael Albinus', 'Mirko'; +Cc: help-gnu-emacs

> > I will wait for a windows build of 23.2 then.
> 
> Rumours say it will be in March. If you want to start 
> earlier, you might try the prerelease at 
> <http://alpha.gnu.org/gnu/emacs/pretest/windows/>

No, I don't think so. That's the previous pretest, 23.1.91.
AFAIK, no Windows pretest binary has yet been posted for 23.1.92.

But the source code for the 23.1.92 pretest has been available for building
since 2010-01-29 (in case you want to build it). It is here:
ftp://alpha.gnu.org/gnu/emacs/pretest/emacs-23.1.92.tar.gz





^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: tramp error with filenames with spaces
       [not found]           ` <mailman.874.1265662287.14305.help-gnu-emacs@gnu.org>
@ 2010-02-08 21:17             ` Mirko
  0 siblings, 0 replies; 14+ messages in thread
From: Mirko @ 2010-02-08 21:17 UTC (permalink / raw)
  To: help-gnu-emacs

On Feb 8, 3:49 pm, "Drew Adams" <drew.ad...@oracle.com> wrote:
> > > I will wait for a windows build of 23.2 then.
>
> > Rumours say it will be in March. If you want to start
> > earlier, you might try the prerelease at
> > <http://alpha.gnu.org/gnu/emacs/pretest/windows/>
>
> No, I don't think so. That's the previous pretest, 23.1.91.
> AFAIK, no Windows pretest binary has yet been posted for 23.1.92.
>
> But the source code for the 23.1.92 pretest has been available for building
> since 2010-01-29 (in case you want to build it). It is here:ftp://alpha.gnu.org/gnu/emacs/pretest/emacs-23.1.92.tar.gz

Thank you, but I will wait :-)


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: tramp error with filenames with spaces
  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>
  0 siblings, 2 replies; 14+ messages in thread
From: Michael Albinus @ 2010-02-08 21:17 UTC (permalink / raw)
  To: Drew Adams; +Cc: help-gnu-emacs, 'Mirko'

"Drew Adams" <drew.adams@oracle.com> writes:

>> > I will wait for a windows build of 23.2 then.
>> 
>> Rumours say it will be in March. If you want to start 
>> earlier, you might try the prerelease at 
>> <http://alpha.gnu.org/gnu/emacs/pretest/windows/>
>
> No, I don't think so. That's the previous pretest, 23.1.91.
> AFAIK, no Windows pretest binary has yet been posted for 23.1.92.

The problem Mirko has reported was fixed last summer. Emacs 23.1.91 is
good enough for him, to open a remote directory containing file names
with spaces.

Best regards, Michael.




^ permalink raw reply	[flat|nested] 14+ messages in thread

* RE: tramp error with filenames with spaces
  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>
  1 sibling, 0 replies; 14+ messages in thread
From: Drew Adams @ 2010-02-08 21:19 UTC (permalink / raw)
  To: 'Michael Albinus'; +Cc: help-gnu-emacs, 'Mirko'

> The problem Mirko has reported was fixed last summer. Emacs 23.1.91 is
> good enough for him, to open a remote directory containing file names
> with spaces.

OK, sorry for the noise.





^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: tramp error with filenames with spaces
       [not found]               ` <mailman.877.1265663994.14305.help-gnu-emacs@gnu.org>
@ 2010-02-09 13:11                 ` Mirko
  2010-02-09 14:19                   ` Michael Albinus
  0 siblings, 1 reply; 14+ messages in thread
From: Mirko @ 2010-02-09 13:11 UTC (permalink / raw)
  To: help-gnu-emacs

On Feb 8, 4:19 pm, "Drew Adams" <drew.ad...@oracle.com> wrote:
> > The problem Mirko has reported was fixed last summer. Emacs 23.1.91 is
> > good enough for him, to open a remote directory containing file names
> > with spaces.
>
> OK, sorry for the noise.

My windows emacs-version is 23.1.1, and on the emacs download site I
don't see anything newer than July 30, 2009.  I think that is the file
that I downloaded and installed.

Can I safely download the tramp.el into my lisp/net directory?

Thanks,

Mirko


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: tramp error with filenames with spaces
  2010-02-09 13:11                 ` Mirko
@ 2010-02-09 14:19                   ` Michael Albinus
  0 siblings, 0 replies; 14+ messages in thread
From: Michael Albinus @ 2010-02-09 14:19 UTC (permalink / raw)
  To: Mirko; +Cc: help-gnu-emacs

Mirko <mvukovic@nycap.rr.com> writes:

> Can I safely download the tramp.el into my lisp/net directory?

Nope. tramp*.el files depend on each other.

But you could install Tramp 2.1.17, from <ftp://ftp.gnu.org/gnu/tramp/>.

> Thanks,
>
> Mirko

Best regards, Michael.




^ 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

* Re: tramp error with filenames with spaces
  2010-02-09 23:19 ` Barrie
@ 2010-02-10 13:43   ` Mirko
  0 siblings, 0 replies; 14+ messages in thread
From: Mirko @ 2010-02-10 13:43 UTC (permalink / raw)
  To: help-gnu-emacs

On Feb 9, 6:19 pm, Barrie <barrie...@gmail.com> wrote:
> Try enclosing the filename in single quotes.
>
> Barrie

I am not sure that would work, since I am listing a sub-directory
directory in dired mode

Thanks,

Mirko


^ 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).