Hi,
> To be clear: we are definitely not going to create an interface (and I
> use the term loosely) to Cygwin which requires a program to internally
> use putenv() or setenv() to change behavior. That is just a really bad
> way to implement this type of thing since it is not how environment
> variables are meant to be used. Environment variables are meant to be
> used to externally control the behavior of a program.
"TZ" env is an example of an env that is used inside applications to
control application internal stuff.
I can do this in 2 lines:
{ static char e[1024]; snprintf(e, sizeof(e)-1,
"%s no_ino no_nlink", getenv("CYGWIN")); setenv("CYGWIN", e, 1); }