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: Re: shell-quote-argument: make it behave as if on Unix? Date: Fri, 12 Apr 2002 13:07:57 +0200 Sender: emacs-devel-admin@gnu.org Message-ID: References: <2950-Wed10Apr2002195652+0300-eliz@is.elta.co.il> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1018616094 21519 127.0.0.1 (12 Apr 2002 12:54:54 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 12 Apr 2002 12:54:54 +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 16w0Zq-0005ay-00 for ; Fri, 12 Apr 2002 14:54:54 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 16w0q7-0007U1-00 for ; Fri, 12 Apr 2002 15:11:43 +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 16w0Zg-0005jc-00; Fri, 12 Apr 2002 08:54:44 -0400 Original-Received: from delysid.gnu.org ([158.121.106.20]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16w0XU-0005UZ-00 for ; Fri, 12 Apr 2002 08:52:28 -0400 Original-Received: from waldorf.cs.uni-dortmund.de ([129.217.4.42]) by delysid.gnu.org with esmtp (Exim 3.34 #2) id 16vyzP-0005vN-00 for ; Fri, 12 Apr 2002 07:13:11 -0400 Original-Received: from lothlorien.cs.uni-dortmund.de (lothlorien [129.217.19.67]) by waldorf.cs.uni-dortmund.de with ESMTP id g3CB84b11674; Fri, 12 Apr 2002 13:08:04 +0200 (MES) Original-Received: from lucy.cs.uni-dortmund.de (lucy [129.217.19.80]) by lothlorien.cs.uni-dortmund.de id NAA20968; Fri, 12 Apr 2002 13:07:58 +0200 (MET DST) Original-Received: by lucy.cs.uni-dortmund.de (Postfix, from userid 6104) id 0BFB13ABC1; Fri, 12 Apr 2002 13:07:57 +0200 (CEST) Original-To: Eli Zaretskii In-Reply-To: <2950-Wed10Apr2002195652+0300-eliz@is.elta.co.il> ("Eli Zaretskii"'s message of "Wed, 10 Apr 2002 19:56:53 +0300") Original-Lines: 20 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:2577 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:2577 "Eli Zaretskii" writes: > 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. Another possibility is to keep the current behavior and just document it: This function uses the variable `system-type' to see what kind of quoting is to take place. You can bind that variable before calling this function to effect a different kind of quoting. For example, the following gives you Unix-style quoting even when Emacs is running on Windows-like systems: (let ((system-type 'not-windows)) (shell-quote-argument "...")) kai -- Silence is foo!