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, 18 Oct 2015 17:06:41 +0200 Message-ID: <87mvvgp666.fsf@gmx.de> References: <87si59wj42.fsf@T420.taylan> <83eggt4esi.fsf@gnu.org> <87fv19wh7b.fsf@T420.taylan> <83bnbx4d7e.fsf@gnu.org> <87twppuzfu.fsf@T420.taylan> <83a8rh48if.fsf@gnu.org> <87io65utmt.fsf@T420.taylan> <5622B337.4050700@yandex.ru> <876125uqzw.fsf@T420.taylan> <5622BE84.8030209@yandex.ru> <87twpptato.fsf@T420.taylan> <87pp0cehly.fsf@gmx.de> <878u70trqz.fsf@T420.taylan> <87si58phte.fsf@gmx.de> <87io648h8r.fsf@fastmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1445180825 26117 80.91.229.3 (18 Oct 2015 15:07:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 18 Oct 2015 15:07:05 +0000 (UTC) Cc: emacs-devel@gnu.org To: Random832 Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 18 17:06:56 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 1ZnpY0-0007r2-17 for ged-emacs-devel@m.gmane.org; Sun, 18 Oct 2015 17:06:56 +0200 Original-Received: from localhost ([::1]:34248 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZnpXy-0000DT-TX for ged-emacs-devel@m.gmane.org; Sun, 18 Oct 2015 11:06:54 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45130) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZnpXv-0000DL-0u for emacs-devel@gnu.org; Sun, 18 Oct 2015 11:06:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZnpXq-0004YX-1M for emacs-devel@gnu.org; Sun, 18 Oct 2015 11:06:50 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:55868) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZnpXp-0004YS-Qz for emacs-devel@gnu.org; Sun, 18 Oct 2015 11:06:45 -0400 Original-Received: from detlef.gmx.de ([93.209.76.209]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0MWC9x-1a2ynT3jzN-00XPKu; Sun, 18 Oct 2015 17:06:43 +0200 In-Reply-To: <87io648h8r.fsf@fastmail.com> (Random's message of "Sun, 18 Oct 2015 08:59:32 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-Provags-ID: V03:K0:VmKOofd98xR90Ecp0TN7HGbtVWVKfFK0hlp8vYxwQNhPPpNHYlB vkZm73oGiZ1UonWnctBpt6chFXa6IHZ8neOTwNl/IIjjFiWoZ9DITOsGfT917ABSzW0pba1 QXtJpNOoq9qfiF7LKwCbKQd50u1tuLZ7COi5+DB0mWs4gE7bpU7kl2hZVlYrOlPVT0P1aRC UMpQbS25wGoeOsMqeTxdw== X-UI-Out-Filterresults: notjunk:1;V01:K0:VER1AfWTsgI=:Qxo8ZLle4x3khseyfgZOHK MVoy6+P8TmH9AN3j6RCgkA2IJ6TP++HNw7qxyRKWrWfWJYSMAuxBnFNHA6qFViOXGQ9g+2y9H fkVpyD23q8lUZ/pUbVkGz75HfSTDUj9OFUbX0UKRU02a2r0ls4XSbTa+6L90dJYenf5bdWKz8 arPYTTCfPHsWHn/kevGneBy5BMemREw99FWLebRE5vaDLPAfnMhgtPCq+/8TYpSHVyV0bplQD Hp0DI2usafutXY/nMUX1pdi934SeU/X7I/d+XgipIDe9en35ui97LIOOYYr2NOoQGJuOR+Xg6 qewjQ5hBig7pXywsccucb1dX91ZZpoxuDT4JrxRZ/cO5pe7B8kw2J2AiHpcehHNll+1Ums8eC xdF8LgKLm5nqycwCj1u0KfMAmy20/dS/nzv0pHRYdbmraoxwiJpEyeH3CYmP04Pdht2kR7l31 BhZtm0jAsTW1suFfdb3rOhgpPaxVLqkKdKT8euIvaPoOOWFCdWyGoeAqffJGjTK7/2djb/UsV xdW3705zJh1hnCi5F6zuX4w5hAZUtdD6DOMUd2jDMGkULTabz+HT3KvOGDjWAKuCtV6rQIesq 8Yh9nRig7seVG3hYCQpKOTvW4sLlSO5+u3FLXDlorOfqapCYZotSrBayKAIQKw6sldHEcoPe7 hmfOPFuW+x6KaSgTNaOSe9w3jCIyHz49ONEh8lkiVt4DSdKMP0STuGsLrVl9lfmAm1YWJvoVv k4pjR5j8gKrTLlVAnTcSSMW799QGHwRrQXSxNybiOth8QQCp5o8qcDHnoUgL6YIA4qs2RgVl X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.15.19 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:191954 Archived-At: Random832 writes: > Speaking of Tramp, what if the local shell is not the same as the > remote shell? And I don't see how the commands it runs "require a > bournish shell" at all. they require that the commands themselves > exist, but that's nothing to do with the shell. In Tramp, it is the default case that the local shell is different from the remote shell. The local shell could be even w32's cmd.exe. Tramp handles this. > Tramp also (as of Emacs 24.5) wraps shell-quote-argument in its own > logic which fixes a newline handling bug that is no longer present. > Which also violates the "don't reinvent the wheel" policy - the fix > should have been submitted to shell-quote-argument itself (as it > ultimately was), and should never have been included in a version of > tramp that shipped with Emacs. You know, that Tramp supports older Emacsen as well as XEmacs 21.4+? And `tramp-shell-quote-argument' binds also `system-type' in order to get a proper result for the remote bournish shell. Admitted, this is not a documented way to do this ... > It even has a TODO item: > > ;; * Rewrite `tramp-shell-quote-argument' to abstain from using > ;; `shell-quote-argument'. This is an obsolete comment, older than 10+ years. It should have been removed long ago; thanks for the heads up. > So much for not reinventing the wheel. You are invited to support me as co-maintainer of Tramp. Seriously. Writing compatibility code is one of the major tasks. Best regards, Michael.