From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Add shell-quasiquote. Date: Thu, 22 Oct 2015 17:51:56 +0200 Message-ID: References: <87si59wj42.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> <87lhavvsf2.fsf@fencepost.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1445529155 30386 80.91.229.3 (22 Oct 2015 15:52:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 22 Oct 2015 15:52:35 +0000 (UTC) Cc: random832@fastmail.com, Eli Zaretskii , jvc@ijmp.net, stephen@xemacs.org, emacs-devel@gnu.org To: David Kastrup Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 22 17:52:26 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 1ZpIA6-000384-CB for ged-emacs-devel@m.gmane.org; Thu, 22 Oct 2015 17:52:18 +0200 Original-Received: from localhost ([::1]:60830 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpIA5-0002uU-TF for ged-emacs-devel@m.gmane.org; Thu, 22 Oct 2015 11:52:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52403) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpI9y-0002u1-Ez for emacs-devel@gnu.org; Thu, 22 Oct 2015 11:52:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZpI9u-0007oF-AE for emacs-devel@gnu.org; Thu, 22 Oct 2015 11:52:10 -0400 Original-Received: from mx2.suse.de ([195.135.220.15]:46565) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpI9n-0007nA-Nl; Thu, 22 Oct 2015 11:51:59 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Original-Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 61BFAAABE; Thu, 22 Oct 2015 15:51:56 +0000 (UTC) X-Yow: Did YOU find a DIGITAL WATCH in YOUR box of VELVEETA? In-Reply-To: <87lhavvsf2.fsf@fencepost.gnu.org> (David Kastrup's message of "Thu, 22 Oct 2015 17:23:13 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] X-Received-From: 195.135.220.15 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:192405 Archived-At: David Kastrup writes: > 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". That's because file system hierarchy is outside the scope of POSIX (execept for a few items as specified in 10.1 Directory Structure and Files). In Unix, is always "/bin/sh". Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."