This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: 1.5.12: TERM environment reset to "cygwin" after fork()

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.
>#include <stdio.h>
>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")); 
>    else
>        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:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]