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: pipe Date: Sat, 14 Mar 2015 22:34:37 +0200 Message-ID: <83pp8b1foi.fsf@gnu.org> References: <83twxp2mew.fsf@gnu.org> <87h9tp3wsp.fsf-ueno@gnu.org> <87wq2kd5je.fsf@vigenere.g10code.de> <83d24c2c2p.fsf@gnu.org> <87d24bdcgr.fsf@vigenere.g10code.de> <838uez3dcj.fsf@gnu.org> <87y4mzbcqm.fsf@vigenere.g10code.de> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1426365313 10024 80.91.229.3 (14 Mar 2015 20:35:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 14 Mar 2015 20:35:13 +0000 (UTC) Cc: ueno@gnu.org, emacs-devel@gnu.org To: Werner Koch Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 14 21:35:03 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 1YWslx-00051H-LI for ged-emacs-devel@m.gmane.org; Sat, 14 Mar 2015 21:35:01 +0100 Original-Received: from localhost ([::1]:41777 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YWslw-0001y3-S2 for ged-emacs-devel@m.gmane.org; Sat, 14 Mar 2015 16:35:00 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40859) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YWslt-0001xw-3s for emacs-devel@gnu.org; Sat, 14 Mar 2015 16:34:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YWslp-0003Gi-RL for emacs-devel@gnu.org; Sat, 14 Mar 2015 16:34:56 -0400 Original-Received: from mtaout29.012.net.il ([80.179.55.185]:41466) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YWslp-0003Ge-JG; Sat, 14 Mar 2015 16:34:53 -0400 Original-Received: from conversion-daemon.mtaout29.012.net.il by mtaout29.012.net.il (HyperSendmail v2007.08) id <0NL700N00YAMEF00@mtaout29.012.net.il>; Sat, 14 Mar 2015 22:31:19 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout29.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NL700F7DYC7W070@mtaout29.012.net.il>; Sat, 14 Mar 2015 22:31:19 +0200 (IST) In-reply-to: <87y4mzbcqm.fsf@vigenere.g10code.de> 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.185 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:183870 Archived-At: > From: Werner Koch > Cc: ueno@gnu.org, emacs-devel@gnu.org > Date: Sat, 14 Mar 2015 20:28:01 +0100 > > On Sat, 14 Mar 2015 14:42, eliz@gnu.org said: > > > But that means it would be impossible to invoke gpg from a shell that > > can redirect handles beyond the first 3, like some decent port of > > Bash, is that correct? Or is that where the wrapper comes into play, > > I don't know about a native Bash port to Windows. Using Cygwin with > native Windows programs is problematic has you probably know. I was thinking about MSYS Bash. But any port of Bash should do, as redirecting file handles for a sub-process is trivial. > > Again, I was talking about file descriptors; the Win32 API knows > > nothing about those. MS runtime passes the translation table between > > handles and file descriptors through undocumented fields of > > I never looked at the MS runtime this since I did the first > cross-compiler toolkit ~20 year ago. I have not a found away to inherit > only specific handles without the wrapper trick. How do they do that or > is the problem of inherited handles in the child ignored? That black magic is described here: http://www.catch22.net/tuts/undocumented-createprocess