From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Eli Zaretskii" Newsgroups: gmane.emacs.devel Subject: Re: shell-quote-argument: make it behave as if on Unix? Date: Wed, 10 Apr 2002 19:56:53 +0300 Sender: emacs-devel-admin@gnu.org Message-ID: <2950-Wed10Apr2002195652+0300-eliz@is.elta.co.il> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1018458201 11630 127.0.0.1 (10 Apr 2002 17:03:21 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 10 Apr 2002 17:03:21 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16vLVB-00031T-00 for ; Wed, 10 Apr 2002 19:03:21 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 16vLkX-0006zI-00 for ; Wed, 10 Apr 2002 19:19:13 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16vLUw-0002jH-00; Wed, 10 Apr 2002 13:03:06 -0400 Original-Received: from heimdall.inter.net.il ([192.114.186.17]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16vLTX-0002aM-00 for ; Wed, 10 Apr 2002 13:01:39 -0400 Original-Received: from zaretsky (diup-223-57.inter.net.il [213.8.223.57]) by heimdall.inter.net.il (Mirapoint Messaging Server MOS 2.9.3.2) with ESMTP id BHO41579; Wed, 10 Apr 2002 20:01:29 +0300 (IDT) Original-To: Kai.Grossjohann@CS.Uni-Dortmund.DE X-Mailer: emacs 21.2.50 (via feedmail 8 I) and Blat ver 1.8.9 In-Reply-To: (Kai.Grossjohann@CS.Uni-Dortmund.DE) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:2511 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:2511 > From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai =?iso-8859-1?q?Gro=DFjohann?=) > Date: Wed, 10 Apr 2002 15:46:37 +0200 > > But if the local Emacs is running on Windows, then > shell-quote-argument produces filenames which are correct for > Windows, and not for Unix. But the filenames will be used on the > remote Unix host. > > Is there a designed-in facility for telling shell-quote-argument to > behave as if on Unix, even if Emacs is running on Windows? It strikes me that we should add to shell-quote-argument an optional argument that will cause it to quote a shell argument for specific OS. If the optional argument is omitted or nil, let it default to system-type. What do you think?