From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Add shell-quasiquote. Date: Wed, 21 Oct 2015 20:18:49 +0300 Message-ID: <83mvvcuoli.fsf@gnu.org> References: <87si59wj42.fsf@T420.taylan> <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> <83zizcurco.fsf@gnu.org> <87lhawi3er.fsf@fencepost.gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1445495568 21052 80.91.229.3 (22 Oct 2015 06:32:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 22 Oct 2015 06:32:48 +0000 (UTC) Cc: random832@fastmail.com, emacs-devel@gnu.org To: David Kastrup Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 22 08:32:36 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 1Zp9QQ-0002rt-Ij for ged-emacs-devel@m.gmane.org; Thu, 22 Oct 2015 08:32:34 +0200 Original-Received: from localhost ([::1]:56788 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zp9QP-0000JJ-RM for ged-emacs-devel@m.gmane.org; Thu, 22 Oct 2015 02:32:33 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60041) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zox2h-0000xZ-L0 for emacs-devel@gnu.org; Wed, 21 Oct 2015 13:19:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zox2c-00032H-KE for emacs-devel@gnu.org; Wed, 21 Oct 2015 13:19:15 -0400 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:54007) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zox2J-0002zk-1i; Wed, 21 Oct 2015 13:18:51 -0400 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0NWK00500Y6FET00@a-mtaout23.012.net.il>; Wed, 21 Oct 2015 20:18:49 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NWK005XYYRCF500@a-mtaout23.012.net.il>; Wed, 21 Oct 2015 20:18:49 +0300 (IDT) In-reply-to: <87lhawi3er.fsf@fencepost.gnu.org> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.175 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:192351 Archived-At: > From: David Kastrup > Cc: Random832 , emacs-devel@gnu.org > Date: Wed, 21 Oct 2015 18:37:16 +0200 > > I don't think package authors as a rule _ever_ bother a lot about what > kind of shell might run their commands. Most external utilities and > Free Software programs of some relevance, including but not restricted > to GNU utilities, are available on a wide variety of both UNIX-like and > unalike systems. I agree. > More often than not shell-quote-argument will be used _exactly_ in order > to save the package author from having to bother about the actual shell > in question. The best way to do that would be a quoting strategy that > works on all systems, the next best autodetection, possibly with some > optionable aid when the system in question is not necessary the local > one (I think we had some expedient for executing helper commands like > decompressors remotely but currently can't find anything. The function shell-quote-argument will not go away under this suggestion (IIUC), it will still do what it does today. The suggestion is to provide a few separate functions that are tailored to specific shells, for those use cases that might need that. One such use case is Tramp, which must work with shells that are not necessarily identical to the system shell of the locals OS. > At any rate, I'm afraid that providing _separate_ shell-quote-argument > functions will encourage people to create programs that stop working > when tramping/communicating/ftping/whatever to a system of different > kind. That's a danger, yes. We will have to consider it, and stand guard if needed.