> Message: 6
> From: =?iso-8859-1?Q?Herv=E9_PARISSI?= <hparissi@...>
> To: <mingw-users@...>
> Subject: Re: [Mingw-users] Port BASH
> Date: Thu, 5 Apr 2001 19:58:54 +0200
> Hi !
> You can find readline & other cool packages there :
> There's actually a fork() in Windows... NT & 2000, in the posix =
> subsystem but I don't know if
> it really works.
Yes, it works, and the WinNT Resource Kit includes a Korn
shell running in the Posix subsystem. However, note that this is
useless here: an application running in this subsystem cannot
create non-posix processes (unless you use the native API).
Another similar solution is to call NtCreateProcess, but
it doesn't go far: the Win32 subsystem server process doesn't
really understand what this forked process is. (See Gary Nebbett's
book on the native API for an implementation of fork based on this.)
> One good solution IMHO may be to change bash itself and use some =
> "portable" thread API.
Something like Perl's implementation of fork?
> Herve PARISSI
> "C'est vivre et cesser de vivre qui sont des
> solutions imaginaires, L'existence est ailleurs."
> (Andr=E9 Breton, Manifeste du Surr=E9alisme, p. 60)