emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pipe


From: Eli Zaretskii
Subject: Re: pipe
Date: Sat, 14 Mar 2015 22:34:37 +0200

> From: Werner Koch <address@hidden>
> Cc: address@hidden,  address@hidden
> Date: Sat, 14 Mar 2015 20:28:01 +0100
> 
> On Sat, 14 Mar 2015 14:42, address@hidden 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]