From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: shell-quote-argument: make it behave as if on Unix? Date: 12 Apr 2002 16:07:23 +0200 Sender: emacs-devel-admin@gnu.org Message-ID: <5xr8llypr8.fsf@kfs2.cua.dk> References: <2950-Wed10Apr2002195652+0300-eliz@is.elta.co.il> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1018616954 22836 127.0.0.1 (12 Apr 2002 13:09:14 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 12 Apr 2002 13:09:14 +0000 (UTC) Cc: Eli Zaretskii , 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 16w0ni-0005wD-00 for ; Fri, 12 Apr 2002 15:09:14 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 16w13z-0007tn-00 for ; Fri, 12 Apr 2002 15:26:03 +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 16w0na-0006Ou-00; Fri, 12 Apr 2002 09:09:06 -0400 Original-Received: from mail.filanet.dk ([195.215.206.179]) by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian)) id 16w0l9-0006L8-00 for ; Fri, 12 Apr 2002 09:06:35 -0400 Original-Received: from kfs2.cua.dk.cua.dk (kfs2.local.filanet.dk [192.168.1.182]) by mail.filanet.dk (Postfix) with SMTP id 51A557C047; Fri, 12 Apr 2002 13:06:31 +0000 (GMT) Original-To: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai =?iso-8859-1?q?Gro=DFjohann?=) In-Reply-To: Original-Lines: 25 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.50 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:2580 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:2580 Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Gro=DFjohann) writes: > Another possibility is to keep the current behavior and just document > it: >=20 > 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 "...")) >=20 Excecpt that this addition to the doc string is larger (and more complex) than the changes needed to add and document an optional target-system-type parameter :-) But I agree that this would suffice, and maybe a shorter doc string would be sufficient [Don't give an example -- this is for lisp experts anyway]... Maybe this is enough: The variable `system-type' determines the kind of quoting performed. --=20 Kim F. Storm http://www.cua.dk