From: Robert Klemme Date: 2009-08-12T16:43:55+09:00 Subject: Re: Windows ENV object being corrupted 2009/8/11 Herman Schultz : > Herman Schultz wrote: >> I am running in rake ( I have reproduced the problem with a straight >> ruby script ) and I read in a batch file that has a few hundred >> environment variables in it.  At some magic point when 323 entries are >> made to the ENV object, suddenly the ENV object gets corrupted. >> Suddenly the adds don't seem to take and later a bunch of my Environment >> variables go missing. > > This appears to be related to spaces in the value strings.  As a Hack I > removed any Env value that had a space, which happens to work for me > now, but I still can't wrap my head around why size plays a factor. I cannot either but this is due to the fact that I am missing information in your original posting. For example, what is the format of the "batch file" are you reading? What does variable "environment" contain? robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/