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: Mon, 19 Oct 2015 14:59:17 +0200 Message-ID: <877fmjj9p6.fsf@fencepost.gnu.org> References: <87si59wj42.fsf@T420.taylan> <878u6znii9.fsf@T420.taylan> 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 1445260567 4223 80.91.229.3 (19 Oct 2015 13:16:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 19 Oct 2015 13:16:07 +0000 (UTC) Cc: emacs-devel@gnu.org To: taylanbayirli@gmail.com (Taylan Ulrich =?utf-8?Q?=22Bay=C4=B1rl=C4=B1?= =?utf-8?Q?=2FKammer=22?=) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 19 15:16:06 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 1ZoAIE-00036W-JB for ged-emacs-devel@m.gmane.org; Mon, 19 Oct 2015 15:16:02 +0200 Original-Received: from localhost ([::1]:39335 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZoA3v-0006hv-S4 for ged-emacs-devel@m.gmane.org; Mon, 19 Oct 2015 09:01:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47021) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZoA25-0005Q2-C5 for emacs-devel@gnu.org; Mon, 19 Oct 2015 08:59:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZoA24-0003kC-KA for emacs-devel@gnu.org; Mon, 19 Oct 2015 08:59:21 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:39347) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZoA23-0003js-5a; Mon, 19 Oct 2015 08:59:19 -0400 Original-Received: from localhost ([127.0.0.1]:53164 helo=lola) by fencepost.gnu.org with esmtp (Exim 4.82) (envelope-from ) id 1ZoA22-0007a6-N6; Mon, 19 Oct 2015 08:59:19 -0400 Original-Received: by lola (Postfix, from userid 1000) id D7BD1DF46D; Mon, 19 Oct 2015 14:59:17 +0200 (CEST) In-Reply-To: <878u6znii9.fsf@T420.taylan> ("Taylan Ulrich =?utf-8?Q?=5C=22Bay=C4=B1rl=C4=B1=2FKammer=5C=22=22's?= message of "Mon, 19 Oct 2015 14:35:26 +0200") 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:192088 Archived-At: taylanbayirli@gmail.com (Taylan Ulrich "Bay=C4=B1rl=C4=B1/Kammer") writes: > taylanbayirli@gmail.com (Taylan Ulrich "Bay=C4=B1rl=C4=B1/Kammer") writes: > >> 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. 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. --=20 David Kastrup