David- > There are no "types" for environment variables.
Not in other operating systems, perhaps, but I think it's perfectly reasonable to adopt the colloquial operating definition that, in Windows, the "type of an environment variable" is the type of the Registry value used to hold that environment variable. > See this article: http://support.microsoft.com/kb/256986 and note the > descriptions of REG_SZ and REG_EXPAND_SZ. I don't think I've said anything that indicates that I don't already understand what's contained there. > The fact that you can do it in RapidEE does not mean it's a built-in feature > of Windows environment variables. Given that the environment variables are stored in the registry, I'd say that *does* mean it's a built-in feature of Windows environment variables, insofar as it's a built-in feature of the implementation of environment variables on Windows. > but you can't count on that feature for use from *any* program that deals > with environment variables. You can only count on it when you are setting an > environment variable via RapidEE's user interface. Apparently, I can count on the setting of that type in RapidEE as having a profound impact on what value is reported by the "set" command in cmd.exe. I'm having a hard time figuring out what your point is. I'm merely trying to point out Windows behavior which, to my knowledge, is not widely known, and may give some people trouble when dealing with applications (like CMake) that make use of environment variables that contain references to other environment variables. Are we arguing over semantics here? -Chris -----Original Message----- From: David Cole [mailto:dlrd...@aol.com] Sent: Friday, August 15, 2014 11:57 AM To: Chris Volpe ARA/SED; andrew.amacl...@gmail.com; cmake@cmake.org; lucas.pet...@engilitycorp.com Subject: Re: [CMake] Possible bug in environment variable expansion? There are no "types" for environment variables. There are types for values stored in the registry. See this article: http://support.microsoft.com/kb/256986 and note the descriptions of REG_SZ and REG_EXPAND_SZ. The fact that you can do it in RapidEE does not mean it's a built-in feature of Windows environment variables. It means they have a nice feature built on top of Windows environment variables, ... but you can't count on that feature for use from *any* program that deals with environment variables. You can only count on it when you are setting an environment variable via RapidEE's user interface. David C. -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake