unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Michael Albinus <michael.albinus@gmx.de>
Cc: lennart.borgman@gmail.com, monnier@iro.umontreal.ca, emacs-devel@gnu.org
Subject: Re: File names with spaces and tramp/ftp
Date: Tue, 12 Feb 2008 21:58:29 +0200	[thread overview]
Message-ID: <uwspandzu.fsf@gnu.org> (raw)
In-Reply-To: <nqve4u49dr.fsf@alcatel-lucent.de> (message from Michael Albinus on Tue, 12 Feb 2008 14:00:48 +0100)

> Cc: Eli Zaretskii <eliz@gnu.org>, lennart.borgman@gmail.com,
>         emacs-devel@gnu.org
> From: Michael Albinus <michael.albinus@gmx.de>
> Date: Tue, 12 Feb 2008 14:00:48 +0100
> 
> But it is a good approximation. Under GNU/Linux, we have
> 
>   (shell-quote-argument "file name with spaces 'and \"quotes")
>     => "file\\ name\\ with\\ spaces\\ \\'and\\ \\\"quotes"
> 
> W32 systems do 
> 
>   (shell-quote-argument "file name with spaces 'and \"quotes")
>     => "\"file name with spaces 'and \\\"quotes\""
> 
> Both quotations work with stock FTP clients except the quotation of
> "\"" on W32 systems: it shall be "\"\" instead of "\\\"".

This case is not important to handle, since Windows file names cannot
include qoute characters " anyway, as you have discovered:

> Btw, I
> could not create the file "~/file name with spaces 'and \"quotes" on
> W32 in Emacs; this worked only with Emacs under GNU/Linux.




      reply	other threads:[~2008-02-12 19:58 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-06 22:17 File names with spaces and tramp/ftp Lennart Borgman (gmail)
2008-02-11 15:39 ` Michael Albinus
2008-02-11 20:18   ` Eli Zaretskii
2008-02-12  3:16     ` Stefan Monnier
2008-02-12 13:00       ` Michael Albinus
2008-02-12 19:58         ` Eli Zaretskii [this message]

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=uwspandzu.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=lennart.borgman@gmail.com \
    --cc=michael.albinus@gmx.de \
    --cc=monnier@iro.umontreal.ca \
    /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 public inbox

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

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