Mail Archives: cygwin/2004/12/03/18:47:25
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"));
>}
>
>C:\dl>a.exe
>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.
cgf
--
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/
- Raw text -