From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: taylanbayirli@gmail.com (Taylan Ulrich =?utf-8?Q?Bay=C4=B1rl=C4=B1?= =?utf-8?Q?=2FKammer?=) Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Add shell-quasiquote. Date: Mon, 19 Oct 2015 15:09:05 +0200 Message-ID: <87zizfm2dq.fsf@T420.taylan> References: <87si59wj42.fsf@T420.taylan> <878u6znii9.fsf@T420.taylan> <877fmjj9p6.fsf@fencepost.gnu.org> 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 1445260169 28879 80.91.229.3 (19 Oct 2015 13:09:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 19 Oct 2015 13:09:29 +0000 (UTC) Cc: emacs-devel@gnu.org To: David Kastrup Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 19 15:09:29 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 1ZoABq-0006ok-8c for ged-emacs-devel@m.gmane.org; Mon, 19 Oct 2015 15:09:26 +0200 Original-Received: from localhost ([::1]:39394 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZoABk-0001tr-O6 for ged-emacs-devel@m.gmane.org; Mon, 19 Oct 2015 09:09:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50269) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZoABd-0001p3-1g for emacs-devel@gnu.org; Mon, 19 Oct 2015 09:09:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZoABZ-0006DD-5R for emacs-devel@gnu.org; Mon, 19 Oct 2015 09:09:12 -0400 Original-Received: from mail-wi0-x22e.google.com ([2a00:1450:400c:c05::22e]:33954) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZoABY-0006D8-Uc; Mon, 19 Oct 2015 09:09:09 -0400 Original-Received: by wikq8 with SMTP id q8so5098354wik.1; Mon, 19 Oct 2015 06:09:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type:content-transfer-encoding; bh=XBBQ6SdsmRS5oxA56lcJqWzbm4/vAYIGDememgBQN1A=; b=WG1/mMB0yXQ1YcesaIS9PNSC96vdYJvfvH/hBtCEw64xLemxW3p02TXcH4YC5W4GVs j1nqrnZeyoWSf15rBUuF9odsi1+hOMLI0dJmV1bbvoCyrAeYeQtGQsfY7jGU9w6xiJJ3 z++jtUWqD2Qmjwm8hSR4cna1aOtOAU3GzSuQ5L3C3rjntBkyA/m6c/4rkjyIWj71HLzu OQrAd7Pkqsy/ppgzKXt4TrPcbI2ugKGq/ve7OMMOFi6ru7SovVjPwCa0Y9F4cyS6noBB geN7b0h2Xuf9uWVhxtw8kO6gWblpyS5i6MrY67uyjsJX5Z4mAPFLPmmi+v7rWRbZJkY4 9RuA== X-Received: by 10.194.202.137 with SMTP id ki9mr31811963wjc.16.1445260148253; Mon, 19 Oct 2015 06:09:08 -0700 (PDT) Original-Received: from T420.taylan ([2a02:908:c32:4740:221:ccff:fe66:68f0]) by smtp.gmail.com with ESMTPSA id lv4sm40166554wjb.43.2015.10.19.06.09.06 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Oct 2015 06:09:06 -0700 (PDT) In-Reply-To: <877fmjj9p6.fsf@fencepost.gnu.org> (David Kastrup's message of "Mon, 19 Oct 2015 14:59:17 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c05::22e 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:192086 Archived-At: David Kastrup writes: > taylanbayirli@gmail.com (Taylan Ulrich "Bay=C4=B1rl=C4=B1/Kammer") writes: > >> taylanbayirli@gmail.com (Taylan Ulrich "Bay=C4=B1rl=C4=B1/Kammer") write= s: >> >>> This is for ELPA. >>> >>> [...] >> >> Here's a version with slightly improved documentation and a clearer >> reasoning for why shell-quote-argument is avoided. >> >> Eli refused to clarify the safety guarantees of shell-quote-argument in >> bug#21702, and after all it has significantly different semantics anyway >> (it doesn't quote shell keywords like 'if'), > > Uh, why should it? > > echo if > > works just fine. So does > > /bin/echo if > > The only position where "if" is somewhat special is in command position > and that's not what shell-quote-argument is for. It was not criticism of shell-quote-argument (those are separate). Indeed it quotes arguments. My variant also quotes things that may be the name of the command and not an argument. > Seriously, try getting used to the idea that Emacs has not been written > by idiots who would not manage to encounter or analyze basic bugs in > 10 years of usage of a very frequently encountered function and that > you'll whip up something better within a minute. > > That's just "not invented here" syndrome. Don't put words in my mouth please. The topic has been discussed in length on the bug report page anyway, I'm not continuing that. Taylan