[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
- pipe, Daiki Ueno, 2015/03/13
- Re: pipe, Eli Zaretskii, 2015/03/13
- Re: pipe, Daiki Ueno, 2015/03/13
- Re: pipe, Werner Koch, 2015/03/13
- Re: pipe, Eli Zaretskii, 2015/03/14
- Re: pipe, Werner Koch, 2015/03/14
- Re: pipe, Eli Zaretskii, 2015/03/14
- Re: pipe, Werner Koch, 2015/03/14
- Re: pipe,
Eli Zaretskii <=
- Re: pipe, Daiki Ueno, 2015/03/17
- Re: pipe, Eli Zaretskii, 2015/03/17
Re: pipe, Stefan Monnier, 2015/03/13
- Re: pipe, Daiki Ueno, 2015/03/13
- [PATCH] Generalize start-process with keyword args, Daiki Ueno, 2015/03/16
- Re: [PATCH] Generalize start-process with keyword args, Stefan Monnier, 2015/03/16
- Re: [PATCH] Generalize start-process with keyword args, Daiki Ueno, 2015/03/16
- Re: [PATCH] Generalize start-process with keyword args, Stefan Monnier, 2015/03/16
- Re: [PATCH] Generalize start-process with keyword args, Daiki Ueno, 2015/03/16
- Re: [PATCH] Generalize start-process with keyword args, Stefan Monnier, 2015/03/17