From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: kgrossjo@emptydomain.de (Kai =?utf-8?Q?Gro=C3=9Fjohann?=) Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Add shell-quasiquote. Date: Sat, 31 Oct 2015 18:03:36 +0100 Message-ID: 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 1446316232 4859 80.91.229.3 (31 Oct 2015 18:30:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 31 Oct 2015 18:30:32 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 31 19:30:23 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 1Zsav0-0000TY-5w for ged-emacs-devel@m.gmane.org; Sat, 31 Oct 2015 19:30:22 +0100 Original-Received: from localhost ([::1]:56641 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zsauz-0006CP-1E for ged-emacs-devel@m.gmane.org; Sat, 31 Oct 2015 14:30:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38472) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zsaun-0006Al-B2 for emacs-devel@gnu.org; Sat, 31 Oct 2015 14:30:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zsauk-0004qx-5X for emacs-devel@gnu.org; Sat, 31 Oct 2015 14:30:09 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:49784) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zsauj-0004pW-Vo for emacs-devel@gnu.org; Sat, 31 Oct 2015 14:30:06 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Zsaui-0000C7-7g for emacs-devel@gnu.org; Sat, 31 Oct 2015 19:30:04 +0100 Original-Received: from dslb-188-101-072-195.188.101.pools.vodafone-ip.de ([188.101.72.195]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 31 Oct 2015 19:30:04 +0100 Original-Received: from kgrossjo by dslb-188-101-072-195.188.101.pools.vodafone-ip.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 31 Oct 2015 19:30:04 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 27 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: dslb-188-101-072-195.188.101.pools.vodafone-ip.de User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) Cancel-Lock: sha1:4+CXtYdygnl7TgIg9FHu3oVFcSI= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:193024 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-do-directory-files-and-attributes-with-stat, it uses "2>/dev/null" which I believe does not work in csh. I think there are other similar subtleties. A more obvious thing is that Tramp sets PS1 and csh doesn't know about PS1. > It even has a TODO item: > > ;; * Rewrite `tramp-shell-quote-argument' to abstain from using > ;; `shell-quote-argument'. > > So much for not reinventing the wheel. tramp-shell-quote-argument let-binds system-type to make shell-quote-argument do the intended thing. This is iffy. shell-quote-argument is documented to do the right thing for the local system, and who knows if tomorrow it still uses system-type to perform that check? Kai