delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <47AB4D05.2090207@cyconix.com> |
Date: | Thu, 07 Feb 2008 18:25:09 +0000 |
From: | Paul Leder <sa212+mingw AT cyconix DOT com> |
User-Agent: | Thunderbird 2.0.0.9 (Windows/20071031) |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Incomplete environ when running MinGW apps? |
References: | <5E25AF06EFB9EA4A87C19BC98F5C87531641A1 AT core-email DOT int DOT ascribe DOT com> <47AB31C7 DOT 3040909 AT cyconix DOT com> <47AB3B0B DOT 9060902 AT sbcglobal DOT net> <47AB4520 DOT 2050305 AT cyconix DOT com> <04d801c869b3$d97c8ce0$2e08a8c0 AT CAM DOT ARTIMI DOT COM> |
In-Reply-To: | <04d801c869b3$d97c8ce0$2e08a8c0@CAM.ARTIMI.COM> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Dave Korn wrote: > Out of curiosity, what's the problem with just using system("...") always? I can't, because I need to redirect child I/O onto a socket, which requires CreateProcess. The Unix code is (relatively) easy, but it's a complete nightmare in Windoze. You have to use pipes as well as sockets, it has to be multi-threaded, select doesn't work, and so on. I can use 'system' occasionally, but then I have the issues of forward/backslashes, extra backslashes, quotes, and so on. I haven't really got to the bottom of this. With CreateProcess I at least have the option to use /bin/sh, if it exists, which makes life a little easier (particularly for quote characters). -Paul -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |