From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai =?iso-8859-1?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.devel Subject: shell-quote-argument: make it behave as if on Unix? Date: Wed, 10 Apr 2002 15:46:37 +0200 Sender: emacs-devel-admin@gnu.org Message-ID: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1018446506 19307 127.0.0.1 (10 Apr 2002 13:48:26 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 10 Apr 2002 13:48:26 +0000 (UTC) Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16vISY-00051I-00 for ; Wed, 10 Apr 2002 15:48:26 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 16vIhr-0002Wn-00 for ; Wed, 10 Apr 2002 16:04:15 +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 16vISH-0002t1-00; Wed, 10 Apr 2002 09:48:09 -0400 Original-Received: from waldorf.cs.uni-dortmund.de ([129.217.4.42]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16vIQv-0002c5-00 for ; Wed, 10 Apr 2002 09:46:45 -0400 Original-Received: from lothlorien.cs.uni-dortmund.de (lothlorien [129.217.19.67]) by waldorf.cs.uni-dortmund.de with ESMTP id g3ADkhb05963 for ; Wed, 10 Apr 2002 15:46:43 +0200 (MES) Original-Received: from lucy.cs.uni-dortmund.de (lucy [129.217.19.80]) by lothlorien.cs.uni-dortmund.de id PAA27201; Wed, 10 Apr 2002 15:46:38 +0200 (MET DST) Original-Received: by lucy.cs.uni-dortmund.de (Postfix, from userid 6104) id 123FB3AEF1; Wed, 10 Apr 2002 15:46:37 +0200 (CEST) Original-To: emacs-devel@gnu.org Original-Lines: 21 User-Agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2.50 (i686-pc-linux-gnu) 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:2501 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:2501 The Tramp package sends commands to a remote Unix host. These commands sometimes include filenames, so I pass those through shell-quote-argument. 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? Or is shell-quote-argument the wrong function to use, altogether? (Right now, I'm binding system-type before invoking shell-quote-argument, but I'm afraid that is the wrong thing to do. Also, I have to wait for a Windows user to check whether it works.) kai -- Silence is foo!