From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: File names with spaces and tramp/ftp Date: Tue, 12 Feb 2008 21:58:29 +0200 Message-ID: References: <47AA3211.3010804@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1202846331 25807 80.91.229.12 (12 Feb 2008 19:58:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 Feb 2008 19:58:51 +0000 (UTC) Cc: lennart.borgman@gmail.com, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 12 20:59:14 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JP1HS-0004wN-Tc for ged-emacs-devel@m.gmane.org; Tue, 12 Feb 2008 20:59:03 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JP1Gz-0002EV-9a for ged-emacs-devel@m.gmane.org; Tue, 12 Feb 2008 14:58:33 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JP1Gu-0002DM-7O for emacs-devel@gnu.org; Tue, 12 Feb 2008 14:58:28 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JP1Gs-0002Bo-Eh for emacs-devel@gnu.org; Tue, 12 Feb 2008 14:58:27 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JP1Gs-0002BZ-9Y for emacs-devel@gnu.org; Tue, 12 Feb 2008 14:58:26 -0500 Original-Received: from romy.inter.net.il ([213.8.233.24]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JP1Gr-0004Hc-P6 for emacs-devel@gnu.org; Tue, 12 Feb 2008 14:58:26 -0500 Original-Received: from HOME-C4E4A596F7 (IGLD-83-130-198-12.inter.net.il [83.130.198.12]) by romy.inter.net.il (MOS 3.7.3-GA) with ESMTP id KFC14979 (AUTH halo1); Tue, 12 Feb 2008 21:58:05 +0200 (IST) In-reply-to: (message from Michael Albinus on Tue, 12 Feb 2008 14:00:48 +0100) X-detected-kernel: by monty-python.gnu.org: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:88903 Archived-At: > Cc: Eli Zaretskii , lennart.borgman@gmail.com, > emacs-devel@gnu.org > From: Michael Albinus > 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.