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: Sun, 18 Oct 2015 05:47:00 +0300 Message-ID: <83612451wb.fsf@gnu.org> 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> <5622B3C6.4030208@cs.ucla.edu> <871tctuqw5.fsf@T420.taylan> <5622C340.1050001@cs.ucla.edu> <87lhb1t9sm.fsf@T420.taylan> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: ger.gmane.org 1445136435 5982 80.91.229.3 (18 Oct 2015 02:47:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 18 Oct 2015 02:47:15 +0000 (UTC) Cc: eggert@cs.ucla.edu, emacs-devel@gnu.org To: taylanbayirli@gmail.com (Taylan Ulrich =?utf-8?Q?Bay=C4=B1rl=C4=B1=2FK?= =?utf-8?Q?ammer?=) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 18 04:47:07 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 1Zne02-0001eS-1q for ged-emacs-devel@m.gmane.org; Sun, 18 Oct 2015 04:47:06 +0200 Original-Received: from localhost ([::1]:60413 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zne00-0004YS-Lp for ged-emacs-devel@m.gmane.org; Sat, 17 Oct 2015 22:47:04 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50940) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zndzw-0004YN-Ij for emacs-devel@gnu.org; Sat, 17 Oct 2015 22:47:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zndzs-0007ym-If for emacs-devel@gnu.org; Sat, 17 Oct 2015 22:47:00 -0400 Original-Received: from mtaout28.012.net.il ([80.179.55.184]:49987) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zndzs-0007yC-AO for emacs-devel@gnu.org; Sat, 17 Oct 2015 22:46:56 -0400 Original-Received: from conversion-daemon.mtaout28.012.net.il by mtaout28.012.net.il (HyperSendmail v2007.08) id <0NWE000009U3W000@mtaout28.012.net.il> for emacs-devel@gnu.org; Sun, 18 Oct 2015 05:46:10 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by mtaout28.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NWE0029XACYBW00@mtaout28.012.net.il>; Sun, 18 Oct 2015 05:46:10 +0300 (IDT) In-reply-to: <87lhb1t9sm.fsf@T420.taylan> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.184 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:191908 Archived-At: > From: taylanbayirli@gmail.com (Taylan Ulrich Bay=C4=B1rl=C4=B1/Kamm= er) > Date: Sun, 18 Oct 2015 00:22:33 +0200 > Cc: emacs-devel@gnu.org >=20 > > On POSIX shells, shell-quote-argument is just as safe as > > shqq--quote-string, and on non-POSIX shells it works better. So i= t's a > > win, in both readability and in portability, to use > > shell-quote-argument. >=20 > Fixing it does not seem easy at all given I can't trust > shell-quote-argument. You can trust it. > And please be realistic in the amount of trust we can put on the > complicated implementations for non-Unix shells. I can't judge the= m > myself since I don't know the syntax of those shells at all. Does > anyone here know their syntax comprehensively, or checked the > implementation against the documentation of those shells? Yes, we do. Yes, we have. > (Actually, those things should be documented for shell-quote-argume= nt, > and my documentation would point there.) What do you think should be documented there that is missing?