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

2004-12-03 Thread Christopher Faylor
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 > >int main(int argc, char **argv) >{ > setenv("TERM", "ansi", 1); >/* ... blah, blah, ... */ >printf("TERM

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

2004-12-03 Thread Richard Campbell
>Provide a simple test case, that is compilable and linkable so that >we can investigate your claim. #include 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 = fo

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

2004-12-03 Thread Christopher Faylor
On Fri, Dec 03, 2004 at 04:21:40PM -0500, B. Scott Smith wrote: >Hi all, > >Version: CYGWIN_NT-5.0 -- 1.5.12(0.116/4/2) -- i686 unknown unknown Cygwin > >I set the TERM environment variable in my application by calling >setenv(). A subsequent call to getenv("TERM") yields the expected value. >How

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

2004-12-03 Thread B. Scott Smith
Hi all, Version: CYGWIN_NT-5.0 -- 1.5.12(0.116/4/2) -- i686 unknown unknown Cygwin I set the TERM environment variable in my application by calling setenv(). A subsequent call to getenv("TERM") yields the expected value. However, after performing a fork(), the call to getenv("TERM") returns "cyg

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

2004-12-03 Thread Christopher Faylor
On Fri, Dec 03, 2004 at 02:35:59PM -0500, B. Scott Smith wrote: >Version: CYGWIN_NT-5.0 -- 1.5.12(0.116/4/2) -- i686 unknown unknown Cygwin > >I set the TERM environment variable in my application by calling >setenv(). A subsequent call to getenv("TERM") yields the expected value. >However, after

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

2004-12-03 Thread B. Scott Smith
Hi all, Version: CYGWIN_NT-5.0 -- 1.5.12(0.116/4/2) -- i686 unknown unknown Cygwin I set the TERM environment variable in my application by calling setenv(). A subsequent call to getenv("TERM") yields the expected value. However, after performing a fork(), the call to getenv("TERM") returns "cyg