From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Random832 Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Add shell-quasiquote. Date: Wed, 21 Oct 2015 14:49:43 -0400 Message-ID: <8737x4vyyg.fsf@fastmail.com> References: <87si59wj42.fsf@T420.taylan> <87mvvfm0bd.fsf@T420.taylan> <56250803.5080601@cs.ucla.edu> <87a8ren5ys.fsf@T420.taylan> <56259BB1.3070908@cs.ucla.edu> <878u6ykmvt.fsf@T420.taylan> <87h9llvo98.fsf@members.fsf.org> <5626622A.3090707@yandex.ru> <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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1445453503 17507 80.91.229.3 (21 Oct 2015 18:51:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 21 Oct 2015 18:51:43 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 21 20:51:30 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 1ZoyTt-0007w7-CA for ged-emacs-devel@m.gmane.org; Wed, 21 Oct 2015 20:51:25 +0200 Original-Received: from localhost ([::1]:53537 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZoyTs-00010g-SZ for ged-emacs-devel@m.gmane.org; Wed, 21 Oct 2015 14:51:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34398) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZoyT2-0000Uc-Oz for emacs-devel@gnu.org; Wed, 21 Oct 2015 14:50:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZoySz-0007da-Dm for emacs-devel@gnu.org; Wed, 21 Oct 2015 14:50:32 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:60593) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZoySz-0007dV-7F for emacs-devel@gnu.org; Wed, 21 Oct 2015 14:50:29 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZoySu-0006rC-8c for emacs-devel@gnu.org; Wed, 21 Oct 2015 20:50:24 +0200 Original-Received: from c-68-39-146-59.hsd1.in.comcast.net ([68.39.146.59]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 21 Oct 2015 20:50:24 +0200 Original-Received: from random832 by c-68-39-146-59.hsd1.in.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 21 Oct 2015 20:50:24 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 41 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-68-39-146-59.hsd1.in.comcast.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:Y6FSa2hupdbQuHWCJOMbSDGAvb4= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:192314 Archived-At: Eli Zaretskii writes: > First, do csh and the rest really non-Posix? As far as I know, all of the ones I named have _some_ quirk in the quoting mechanism that makes it not work. See my earlier messages about newline mishandling for how csh fails. More broadly, a sh script and a csh script are obviously in two completely different languages, and see below. Doing anything interesting (where "interesting" is defined as almost anything that you shouldn't be using call-process for anyway) with a shell command requires knowing what kind of shell it is, which is why I am somewhat sympathetic to Taylan's "only support POSIX" position. > I wonder. I always > understood "Posix shells" as a short for "any shell on a Posix host". > Is that incorrect? In what way are those "non-Posix"? POSIX defines an entire shell command language, which is a subset of [most of] ksh88. Bash, among others, supports a superset of this language [many of its additional features, incidentally, are shared with ksh93] and has a --posix mode to support it more precisely (documented at http://tiswww.case.edu/php/chet/bash/POSIX). > Next, I could see why users on a Posix host might want to execute some > commands with a particular non-default shell. I don't see why Emacs > packages, perhaps with a sole exception of Tramp, would need that. > > On MS-Windows, using a Posix shell needs to customize variables like > explicit-shell-file-name, and Emacs detects that automatically. > >> It would mainly be useful in the presence of a broader mechanism, which >> doesn't exist yet, for executing POSIX shell scripts regardless of the >> user's interactive shell. > > On Posix hosts? I thought that was automatic, since each script says > what interpreter should run it in its "shebang" line. Right? I meant a script as a string, not a file. Maybe call it a command, but I'm specifically referring to things more complicated than a single utility and a list of arguments (which should use call-process).