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: Sun, 01 Nov 2015 23:34:43 +0100 Message-ID: <87a8qxgxh8.fsf@gmx.de> References: <87si59wj42.fsf@T420.taylan> <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> <83zizcurco.fsf@gnu.org> <83a8qxxxmh.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1446417320 22537 80.91.229.3 (1 Nov 2015 22:35:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 1 Nov 2015 22:35:20 +0000 (UTC) Cc: Kai =?utf-8?Q?Gro=C3=9Fjohann?= , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 01 23:35:06 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 1Zt1DN-0008Qu-CR for ged-emacs-devel@m.gmane.org; Sun, 01 Nov 2015 23:35:05 +0100 Original-Received: from localhost ([::1]:39145 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zt1DM-0007OI-J0 for ged-emacs-devel@m.gmane.org; Sun, 01 Nov 2015 17:35:04 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33715) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zt1D8-0007OD-Lr for emacs-devel@gnu.org; Sun, 01 Nov 2015 17:34:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zt1D5-0001FQ-DB for emacs-devel@gnu.org; Sun, 01 Nov 2015 17:34:50 -0500 Original-Received: from mout.gmx.net ([212.227.15.15]:64553) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zt1D5-0001FF-6w; Sun, 01 Nov 2015 17:34:47 -0500 Original-Received: from detlef.gmx.de ([79.195.14.163]) by mail.gmx.com (mrgmx001) with ESMTPSA (Nemesis) id 0M7Xi3-1adxIZ16ql-00xNbK; Sun, 01 Nov 2015 23:34:44 +0100 In-Reply-To: <83a8qxxxmh.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 01 Nov 2015 22:39:34 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-Provags-ID: V03:K0:bnFNYtEFIOTciIFQ6QcHa7Y1U5ixqVvcDZMWKzTRcw/Fpe8V8aY OH6HAMuf+erJE7oLgJMBcIypYMlxyEW5sceCaToNg1aJUCeW+1k7m4xjMlwwKkpZ/ZpjrH0 jVN/Ra4A+3jDfb6VATSDBbLuyODWAZQ7Cp3dpT8EV0bW7IaOvJYTcp7H5QGD/0xXKVNk0XZ Y0tKiUpqBiYAvgHEfSNMw== X-UI-Out-Filterresults: notjunk:1;V01:K0:rGlf90Yq2B4=:SWuTYwFxGjQLJortsdkU3F 0ifLLQkAywr3JPZCLaEk3bF+o0EogJGNZnmyHrnVjvyVh0NdGbaohCRusCoKc9M310k7jQYei SJhVxZsuVd3va5usj/8jRWyfIvOhA8vBb1d/oHaWkI/kS80sPdD+QYNKZh4ZFB4CQjMaKOvuR FmwaoN9XkOktD0JdBWRCk71j+AZeT09M0/sy2B/D5iNNHux7u9b+9NCOtpWlfmC3oIRM6xEqk Sv61+6cOusrb8UOVcZbxcFBpRQ2GucqUY0zNAjbyIrN3lCUY4JT4Vi2hgYM1YCHZ6QGMGYCXw 1Kvmz0XPOPF6D6KDstx02v8gI1gVPFIhZIRAkj86f5cKJ04h/TdDYhVNEuxi1rWOz25Y+oe/r jmwG54arz0//JX0Z78XVU8s1aBHgbmrch0WMRGcteIhSW0enwYjvl1YWY573k5e4qYymRUQgc BLDqrfOxX5o3+cwtiGJUO+SkWzhdqkUB5SFpfWqKJp7kp9o9xnnbeq3fPgh4TXjSa2dZU//w5 yrZpYf6NnR+yJdxAOx+0y0gl4e8fNLOqgXWmkMgwJhbDkJJmVOd01XhaQi+Xom7epQ8vQA19R mHJCbEqCkopZVj5jgez9/hyIAH/93ZMCRm2KKmSbJoKJznTXuAwqNpvSBUqDGEJtfTJipZf5c dls7Kn8huhgSBKqqMtKk8/AZ2Ss5PTBAlaxmDL/dRWe47h81ZHKZh6YvM+gJRt5XqHgCMY9Ms ZzZU2SNxIacuihBXaRlLVshVjbnFivuLpeLSJUyRl9qSvkrFHIcF2uIeLqCac20VSHtPpPiR 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:193087 Archived-At: Eli Zaretskii 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. >> > >> > On what OS would that distinction be important, and why? >> >> Tramp is an example: it runs a Bourne-ish shell on the remote host, and >> thus it would like to quote shell arguments for that shell. > > That's easy to fix by adding an optional 2nd argument, I think. If Tramp would be the only package addressed by this change, it's not necessary. Tramp knows how to handle the situation, and it wouldn't give up its own solution for a long time due to backward compatibility. But feel free to install such a change if you think it is worth. And this optional argument shall also say the type of shell quoting (bournish, windows-like, ...). In tramp-smb.el we have exact the reverse situation: The local shell is likely to be bournish, but the remote host (accessed via smb-client) expects a windows-like argument quoting. Best regards, Michael.