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: Wed, 21 Oct 2015 20:32:51 +0300 Message-ID: <83lhawuny4.fsf@gnu.org> References: <87si59wj42.fsf@T420.taylan> <87zizfm2dq.fsf@T420.taylan> <871tcr7yvq.fsf@fastmail.com> <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> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1445448808 5773 80.91.229.3 (21 Oct 2015 17:33:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 21 Oct 2015 17:33:28 +0000 (UTC) Cc: emacs-devel@gnu.org To: Random832 Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 21 19:33:20 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 1ZoxGI-00036s-Dl for ged-emacs-devel@m.gmane.org; Wed, 21 Oct 2015 19:33:18 +0200 Original-Received: from localhost ([::1]:53048 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZoxGH-0006vM-LR for ged-emacs-devel@m.gmane.org; Wed, 21 Oct 2015 13:33:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35657) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZoxFw-0006sE-JW for emacs-devel@gnu.org; Wed, 21 Oct 2015 13:32:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZoxFt-00079n-DR for emacs-devel@gnu.org; Wed, 21 Oct 2015 13:32:56 -0400 Original-Received: from mtaout28.012.net.il ([80.179.55.184]:45567) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZoxFs-000793-VV for emacs-devel@gnu.org; Wed, 21 Oct 2015 13:32:53 -0400 Original-Received: from conversion-daemon.mtaout28.012.net.il by mtaout28.012.net.il (HyperSendmail v2007.08) id <0NWK00600ZA4U700@mtaout28.012.net.il> for emacs-devel@gnu.org; Wed, 21 Oct 2015 20:32:01 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by mtaout28.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NWK003HSZDDQM30@mtaout28.012.net.il>; Wed, 21 Oct 2015 20:32:01 +0300 (IDT) In-reply-to: <87k2qgw3q1.fsf@fastmail.com> 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:192304 Archived-At: > From: Random832 > Date: Wed, 21 Oct 2015 13:06:46 -0400 > > Eli Zaretskii writes: > >> From: Random832 > >> It doesn't have a documented way for the caller to insist that the > >> string be quoted for a POSIX shell rather than the user's shell. > > > > On what OS would that distinction be important, and why? > > Any OS which may have both a POSIX shell that a script may want to > execute and a non-POSIX shell that is the user's shell. So basically all > of them, especially if support for more non-POSIX shells such as csh, > rc, scsh, fish, tclsh, is added in the future - or if a user's > configuration supports them in the present by replacing or advising the > function. First, do csh and the rest really non-Posix? 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"? 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? On MS-Windows, we would need to write code that parses the shebang line, and then looks for an appropriate interpreter, probably on PATH. But that'd be a w32-only feature.