Jason Edmeades us@edmeades.me.uk writes:
Add support for longer than 1024 characters for initial settings of environment variables. Given windows behaviour changes after 2048, use that as the new limit for the variable size.
It doesn't seem too hard to make the buffer size dynamic.