From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Add shell-quasiquote. Date: Thu, 22 Oct 2015 16:50:47 +0200 Message-ID: <87twpjvtx4.fsf@fencepost.gnu.org> References: <87si59wj42.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> <87k2qgw3q1.fsf@fastmail.com> <83lhawuny4.fsf@gnu.org> <8737x4vyyg.fsf@fastmail.com> <83bnbsujqd.fsf@gnu.org> <87y4ewujf8.fsf@fastmail.com> <837fmguixu.fsf@gnu.org> <87twpkhugn.fsf@fastmail.com> <8337x3vd8d.fsf@gnu.org> <871tcnz8or.fsf@fencepost.gnu.org> <87611zuikf.fsf@fastmail.com> <87y4evvwko.fsf@fencepost.gnu.org> <87vb9zt188.fsf@fastmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1445525478 22066 80.91.229.3 (22 Oct 2015 14:51:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 22 Oct 2015 14:51:18 +0000 (UTC) Cc: emacs-devel@gnu.org To: Random832 Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 22 16:51:17 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 1ZpHD2-0006po-As for ged-emacs-devel@m.gmane.org; Thu, 22 Oct 2015 16:51:16 +0200 Original-Received: from localhost ([::1]:60451 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpHD1-000342-Sa for ged-emacs-devel@m.gmane.org; Thu, 22 Oct 2015 10:51:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54147) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpHCj-00030s-NG for emacs-devel@gnu.org; Thu, 22 Oct 2015 10:50:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZpHCf-00014F-Tv for emacs-devel@gnu.org; Thu, 22 Oct 2015 10:50:57 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:60637) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpHCa-000125-3s; Thu, 22 Oct 2015 10:50:48 -0400 Original-Received: from localhost ([127.0.0.1]:46223 helo=lola) by fencepost.gnu.org with esmtp (Exim 4.82) (envelope-from ) id 1ZpHCZ-0008Sn-J3; Thu, 22 Oct 2015 10:50:47 -0400 Original-Received: by lola (Postfix, from userid 1000) id 1A8C2DF493; Thu, 22 Oct 2015 16:50:47 +0200 (CEST) In-Reply-To: <87vb9zt188.fsf@fastmail.com> (Random's message of "Thu, 22 Oct 2015 10:41:11 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e 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:192392 Archived-At: Random832 writes: > David Kastrup writes: >> This bears absolutely no relation to shell-quote-argument as >> shell-quote-argument has only a very small well-described job. > > shell-quote-argument has *no job at all* without shell-command. Disagree. There are lots of ways for constructing commands and arguments for shells that don't work via shell-command. Take M-x shell RET alone and its TAB completion. Or the TAB completion for commands like M-x grep. Or the operation of Tramp. > Its purpose is a helper function for building strings to pass to > shell-command. To pass to some command executing a shell in its bowels. > And I am becoming increasingly confused as to what the purpose of > shell-command is. > > And anyway I obviously wasn't even talking about shell-quote-argument > anymore, I was talking about the idea of adding a > "posix-shell-command" function [which would naturally need a > posix-shell-quote-argument], so saying "it's irrelevant to > shell-quote-argument" is unreasonable. The problem of "posix-shell-command" is that POSIX shells don't fall from the tree. It is something outside of the power of Emacs to provide or guarantee. -- David Kastrup