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 17:23:13 +0200 Message-ID: <87lhavvsf2.fsf@fencepost.gnu.org> References: <87si59wj42.fsf@T420.taylan> <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> <877fmfxe75.fsf@fencepost.gnu.org> <83bnbrsztd.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1445527445 29095 80.91.229.3 (22 Oct 2015 15:24:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 22 Oct 2015 15:24:05 +0000 (UTC) Cc: random832@fastmail.com, stephen@xemacs.org, jvc@ijmp.net, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 22 17:24:04 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 1ZpHi9-0006EC-Ag for ged-emacs-devel@m.gmane.org; Thu, 22 Oct 2015 17:23:25 +0200 Original-Received: from localhost ([::1]:60684 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpHi8-0000Ww-L4 for ged-emacs-devel@m.gmane.org; Thu, 22 Oct 2015 11:23:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40382) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpHi1-0000TR-Rp for emacs-devel@gnu.org; Thu, 22 Oct 2015 11:23:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZpHi0-00051Y-RY for emacs-devel@gnu.org; Thu, 22 Oct 2015 11:23:17 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:33115) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpHhy-0004zh-KR; Thu, 22 Oct 2015 11:23:14 -0400 Original-Received: from localhost ([127.0.0.1]:46934 helo=lola) by fencepost.gnu.org with esmtp (Exim 4.82) (envelope-from ) id 1ZpHhx-0007KU-MH; Thu, 22 Oct 2015 11:23:14 -0400 Original-Received: by lola (Postfix, from userid 1000) id 4DFCEDF4B4; Thu, 22 Oct 2015 17:23:13 +0200 (CEST) In-Reply-To: <83bnbrsztd.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 22 Oct 2015 18:11:42 +0300") 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:192401 Archived-At: Eli Zaretskii writes: >> From: David Kastrup >> Cc: Eli Zaretskii , random832@fastmail.com, >> stephen@xemacs.org, emacs-devel@gnu.org >> Date: Thu, 22 Oct 2015 14:47:26 +0200 >> >> [/bin/sh] is what "system" is supposed to run. > > Maybe I'm wrong, but my reading of Posix indicates that 'system' runs > "sh" in an unspecified directory. [CX] [Option Start] The system() function shall behave as if a child process were created using fork(), and the child process invoked the sh utility using execl() as follows: execl(, "sh", "-c", command, (char *)0); where is an unspecified pathname for the sh utility. [...] Well, you're quite right. It's not even necessary that the executable file in the unspecified directory is actually called "sh" as long as it is called with argv[0] being "sh". -- David Kastrup