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: Thu, 22 Oct 2015 14:47:26 +0200 Message-ID: <877fmfxe75.fsf@fencepost.gnu.org> References: <87si59wj42.fsf@T420.taylan> <87zizdijbp.fsf@T420.taylan> <56267302.7050606@yandex.ru> <87io61igyu.fsf@T420.taylan> <56267CDF.6010201@yandex.ru> <87wpuhh15s.fsf@T420.taylan> <562683B9.1060305@yandex.ru> <83y4exe71v.fsf@gnu.org> <87y4ewoqbs.fsf@fastmail.com> <83si54e2qx.fsf@gnu.org> <87y4ew8fue.fsf@fastmail.com> <83zizcurco.fsf@gnu.org> <87k2qgw3q1.fsf@fastmail.com> <83lhawuny4.fsf@gnu.org> <22055.54617.848927.986392@turnbull.sk.tsukuba.ac.jp> <85a8rcrs8q.fsf@iznogoud.viz> <83fv14ukna.fsf@gnu.org> <854mhkrqwe.fsf@iznogoud.viz> <838u6wujeu.fsf@gnu.org> <85eggnuq9w.fsf@iznogoud.viz> <8737x3m9n1.fsf@ijmp.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1445518077 22083 80.91.229.3 (22 Oct 2015 12:47:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 22 Oct 2015 12:47:57 +0000 (UTC) Cc: random832@fastmail.com, Eli Zaretskii , stephen@xemacs.org, emacs-devel@gnu.org To: Jeff Clough Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 22 14:47:55 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 1ZpFHR-0002cn-LN for ged-emacs-devel@m.gmane.org; Thu, 22 Oct 2015 14:47:41 +0200 Original-Received: from localhost ([::1]:59462 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpFHR-0002dO-1I for ged-emacs-devel@m.gmane.org; Thu, 22 Oct 2015 08:47:41 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59595) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpFHJ-0002XO-Gn for emacs-devel@gnu.org; Thu, 22 Oct 2015 08:47:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZpFHI-0003nA-N9 for emacs-devel@gnu.org; Thu, 22 Oct 2015 08:47:33 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:58295) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpFHD-0003lt-D6; Thu, 22 Oct 2015 08:47:27 -0400 Original-Received: from localhost ([127.0.0.1]:43880 helo=lola) by fencepost.gnu.org with esmtp (Exim 4.82) (envelope-from ) id 1ZpFHC-0007k8-KH; Thu, 22 Oct 2015 08:47:26 -0400 Original-Received: by lola (Postfix, from userid 1000) id 2DECBDF494; Thu, 22 Oct 2015 14:47:26 +0200 (CEST) In-Reply-To: <8737x3m9n1.fsf@ijmp.net> (Jeff Clough's message of "Thu, 22 Oct 2015 07:21:22 -0400") 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:192375 Archived-At: Jeff Clough writes: > Wolfgang Jenkner writes: > >> On Wed, Oct 21 2015, Eli Zaretskii wrote: >> >>> I guess patches to extend shell-quote-argument to cover more shells on >>> Posix systems should be welcome, and should get higher priority than >>> we thought. >> >> I beg to differ: IMHO, on Unix-like systems, there's no point for >> `shell-command' and friends to support anything but /bin/sh, which is >> certainly a Bourne shell and hopefully reasonably POSIX compliant. > > I think this might not be true, depending on what "a Bourne shell" means > to some users. On many systems, /bin/sh is a symlink to whichever shell > floats the vendor's goat. > > For example, on the Mint distribution of GNU/Linux, it's a symlink to > dash. While dash is a variant of a variant of the Bourne shell, can we > say with reasonable certainty that those variations don't impact > shell-quote-argument? (I don't know what they are myself, just posing > the question.) If something is linked to /bin/sh, it's close enough to a Bourne shell that its quoting semantics are very clear. Too many reasonably portable software depends on that. This is what "system" is supposed to run. Details may differ, but shell-quote-argument should not be affected. -- David Kastrup