From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Add shell-quasiquote. Date: Wed, 21 Oct 2015 16:40:43 +0200 Message-ID: <87h9lkxp1w.fsf@gmx.de> References: <87si59wj42.fsf@T420.taylan> <877fmjj9p6.fsf@fencepost.gnu.org> <87zizfm2dq.fsf@T420.taylan> <871tcr7yvq.fsf@fastmail.com> <87mvvfm0bd.fsf@T420.taylan> <56250803.5080601@cs.ucla.edu> <87a8ren5ys.fsf@T420.taylan> <56259BB1.3070908@cs.ucla.edu> <878u6ykmvt.fsf@T420.taylan> <87h9llvo98.fsf@members.fsf.org> <5626622A.3090707@yandex.ru> <87zizdijbp.fsf@T420.taylan> <56267302.7050606@yandex.ru> <87io61igyu.fsf@T420.taylan> <56267CDF.6010201@yandex.ru> <87wpuhh15s.fsf@T420.taylan> <562683B9.1060305@yandex.ru> <83y4exe71v.fsf@gnu.org> <87y4ewoqbs.fsf@fastmail.com> <83si54e2qx.fsf@gnu.org> <87y4ew8fue.fsf@fastmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1445438508 11776 80.91.229.3 (21 Oct 2015 14:41:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 21 Oct 2015 14:41:48 +0000 (UTC) Cc: emacs-devel@gnu.org To: Random832 Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 21 16:41:32 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZouZl-0003uO-Ba for ged-emacs-devel@m.gmane.org; Wed, 21 Oct 2015 16:41:13 +0200 Original-Received: from localhost ([::1]:51940 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZouZk-0005Gy-Ds for ged-emacs-devel@m.gmane.org; Wed, 21 Oct 2015 10:41:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33240) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZouZP-0005BT-Mq for emacs-devel@gnu.org; Wed, 21 Oct 2015 10:40:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZouZK-0002Ja-AP for emacs-devel@gnu.org; Wed, 21 Oct 2015 10:40:51 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:62675) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZouZK-0002JG-3L for emacs-devel@gnu.org; Wed, 21 Oct 2015 10:40:46 -0400 Original-Received: from detlef.gmx.de ([87.146.41.62]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0MHoC5-1ZpkRd2Lqn-003bM1; Wed, 21 Oct 2015 16:40:44 +0200 In-Reply-To: <87y4ew8fue.fsf@fastmail.com> (Random's message of "Wed, 21 Oct 2015 10:18:49 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-Provags-ID: V03:K0:Oyz3jMU14pFVvImAFrE/8YsA+ONyQRJckowd3SAHUq4sH6esFqJ lYbtfu+T5RFTMTM/mQR73lyoCwAZEoPmDAGAozEgUjiNW4uvGxsxJjDpD4CDmVf1tiPxxzm NKJY0vUqHDDaSk46t/iM5HndQ4HxLl3oL4OVgavISFHDxgzNapWtwfpW6Kv9HFck9Bnj0gm 6tiKUKZ+X0hJa8cJCiPEA== X-UI-Out-Filterresults: notjunk:1;V01:K0:AmNZu3nDCxA=:wiiimLjDsfKtxmBowA9r7T 7WBQddZ0rsYK4GMMKAnOczC8S4b/VhmQiOE1VbMP16yhI0dFyGrIaS/5BRpwOBoZ6KSMGoX7v j4ZR5hmOd9Q3jMYbmsS65mo/j/tld3j1yXmLj5unJDWs23TfH2njobWNTIjzSevNpFSkWd1+v QJT1xdND8lDJ94W8eJ3EiFbu6vMMNSeBjLwEL53bEFLtXkOTz/BICa8ieuRPvm6raxIdud0Uc 1Csv9hEFT+SdKpyw5OfF7VzPTIs0ePOZaKiIEgT8ZZ10KLQnyMat5PFsRRNomhefA/48VYtlr x2A/gl3ffz4x+O5ytAia1M1HtcWcRpdWpgEBYgXzQVR9CBVJiA3rYIqggI7nq1j88RTbCEVdf +p5Ihg/aBT8Kv0/YrD0PeEzGdCt+Y+HVNqHFQFUYFteflSkN+jFgNOmiXbBsJrs/BegjkAbkv LKYJ+j5vuMGslA04b5lu57hd3B31Au0V1X9fcPRMS4ii2njZO2q58sKYIXF14FjIW93W4i+L+ PxropUBh8+X/+fV4k6YRj7jKzCN+qp+2wR3z+ETBQT9J2AuzBZkvz1ftRMnR/GkbeRWKqXeow sJSK2R2to+LIYeSKBK/vQt34WSFI6yhjrh3FS2rGK84aaCFx+YWSHrz5maQ+r6y527/ZRbxWX Q5SxMu4v3relSzm4mXOIEhYAgHRh58fUG65AsKOkk8ocX36doN8pcxjYMyvjpNgdZLELDsSU8 Z17/oeOsC/QBfQoYXcGAJaNWXW+f2qAA/e9gj1fan/wY6S6P/s5hkAA+pzY9G0zdOhNINflt X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.15.15 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:192286 Archived-At: Random832 writes: > It doesn't have a documented way for the caller to insist that the > string be quoted for a POSIX shell rather than the user's shell. In > particular, the (undocumented) mechanism that Tramp uses to get this > behavior will obviously break in the presence of (as recommended by the > documentation) an advised or completely overridden version of the > function put in place by a user who has an unusual shell. > > Maybe what needs to be done is to have separate functions > shell-quote-argument-msdos, shell-quote-argument-nt, > shell-quote-argument-posix, and then have shell-quote-argument call > those based on the user's shell. I'm in favor of this proposal. Could be also an optional argument to `shell-quote-argument', instead of four functions. Tramp has to handle backwards compatibility then, but hey!, this is daily business :-) Best regards, Michael.