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: Sat, 17 Oct 2015 13:47:02 -0700 Organization: UCLA Computer Science Department Message-ID: <5622B3C6.4030208@cs.ucla.edu> 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> 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 1445114870 32637 80.91.229.3 (17 Oct 2015 20:47:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 17 Oct 2015 20:47:50 +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 Sat Oct 17 22:47:42 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 1ZnYOC-0006JU-VD for ged-emacs-devel@m.gmane.org; Sat, 17 Oct 2015 22:47:41 +0200 Original-Received: from localhost ([::1]:59709 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZnYOC-0007Dr-4e for ged-emacs-devel@m.gmane.org; Sat, 17 Oct 2015 16:47:40 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35496) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZnYNh-0007Av-1n for emacs-devel@gnu.org; Sat, 17 Oct 2015 16:47:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZnYNb-0007wP-Vq for emacs-devel@gnu.org; Sat, 17 Oct 2015 16:47:08 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:51130) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZnYNb-0007wE-QK for emacs-devel@gnu.org; Sat, 17 Oct 2015 16:47:03 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 1E115160E02; Sat, 17 Oct 2015 13:47:03 -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 WHdoX9xeM1_p; Sat, 17 Oct 2015 13:47:02 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 6B3D8160E15; Sat, 17 Oct 2015 13:47:02 -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 HvmYHcIKHMMj; Sat, 17 Oct 2015 13:47:02 -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 4E4AE160E02; Sat, 17 Oct 2015 13:47:02 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 In-Reply-To: <87io65utmt.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:191881 Archived-At: Taylan Ulrich Bay=C4=B1rl=C4=B1/Kammer wrote: > You seem to be implying that using shell-quote-argument will uphold the > invariant that the code is safe against injection. I'm asking for > explicit confirmation of that. Yes, it's safe. In contrast, the version you proposed is not safe for rea= lly=20 weird csh-like shells, where it can mishandle '!'.