This is the mail archive of the
mailing list for the Cygwin project.
Re: 1.5.12: TERM environment reset to "cygwin" after fork()
- From: Christopher Faylor <cgf-no-personal-reply-please at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Fri, 3 Dec 2004 18:47:41 -0500
- Subject: Re: 1.5.12: TERM environment reset to "cygwin" after fork()
- References: <C1A7FA5F2793A94BA223673B8ADAF4A1037463AE@exchange.air2web.com>
- Reply-to: cygwin at cygwin dot com
On Fri, Dec 03, 2004 at 04:44:01PM -0500, Richard Campbell wrote:
>>Provide a simple test case, that is compilable and linkable so that
>>we can investigate your claim.
>int main(int argc, char **argv)
> setenv("TERM", "ansi", 1);
> /* ... blah, blah, ... */
> printf("TERM is: %s\n", getenv("TERM")); /* prints "ansi" as expected */
> int i = fork();
> if (i < 0)
> printf("Bad Business...");
> else if ( i > 0 )
> printf("parent TERM is: %s\n", getenv("TERM"));
> printf("child TERM is: %s\n", getenv("TERM"));
>TERM is: ansi
>parent TERM is: ansi
>child TERM is: cygwin
Thanks. That pinpointed the problem it will be fixed in the next release.
Ordinarily I'd say "try a snapshot" but apparently I've destabilized things
a bit in snapshot land so I wouldn't recommend using a snapshot right now.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html