From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Add shell-quasiquote. Date: Tue, 20 Oct 2015 09:21:56 -0700 Organization: UCLA Computer Science Department Message-ID: <56266A24.6060004@cs.ucla.edu> References: <87si59wj42.fsf@T420.taylan> <878u6znii9.fsf@T420.taylan> <877fmjj9p6.fsf@fencepost.gnu.org> <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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1445358148 4587 80.91.229.3 (20 Oct 2015 16:22:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 20 Oct 2015 16:22:28 +0000 (UTC) Cc: emacs-devel@gnu.org To: =?UTF-8?Q?Taylan_Ulrich_Bay=c4=b1rl=c4=b1/Kammer?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 20 18:22:10 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 1ZoZfr-00035J-U9 for ged-emacs-devel@m.gmane.org; Tue, 20 Oct 2015 18:22:08 +0200 Original-Received: from localhost ([::1]:46951 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZoZfr-0008My-9J for ged-emacs-devel@m.gmane.org; Tue, 20 Oct 2015 12:22:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60699) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZoZfm-0008Mf-58 for emacs-devel@gnu.org; Tue, 20 Oct 2015 12:22:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZoZfj-0001Fa-0Q for emacs-devel@gnu.org; Tue, 20 Oct 2015 12:22:02 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:34253) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZoZfi-0001FN-Qx for emacs-devel@gnu.org; Tue, 20 Oct 2015 12:21:58 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 34AB6160D72; Tue, 20 Oct 2015 09:21:57 -0700 (PDT) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id Mph37m1XTfEP; Tue, 20 Oct 2015 09:21:56 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 69191160D74; Tue, 20 Oct 2015 09:21:56 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id VYXaTVnO4uSp; Tue, 20 Oct 2015 09:21:56 -0700 (PDT) Original-Received: from [192.168.1.9] (pool-100-32-155-148.lsanca.fios.verizon.net [100.32.155.148]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 48B75160D72; Tue, 20 Oct 2015 09:21:56 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 In-Reply-To: <878u6ykmvt.fsf@T420.taylan> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 131.179.128.68 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:192198 Archived-At: Taylan Ulrich Bay=C4=B1rl=C4=B1/Kammer wrote: > (shell-command (shqq (./foo bar baz))) > /bin/bash: ./foo: No such file or directory > > I don't see a problem. Nor do I. And you can use the same technique to run "./break" or "/bin/br= eak",=20 should anyone be crazy enough to create a file with either name. The poin= t is=20 that shqq's quoting mechanism doesn't work any better than shell-quote-ar= gument=20 does for contrived examples like "break". > I will use shell-quote-argument once the real problem with it is fixed. No case has been presented that there's a significant problem with it. Th= e=20 argument that one might want to run an executable named "if" is, as you s= ay, a=20 trivial one, i.e., not significant. Yes, there are problems if you use shell-quote-argument with weird shells= that=20 don't use standard quoting conventions, but that's also true for shqq's o= r for=20 any other quoting function, so it's not a knock on shell-quote-argument's= =20 implementation.