On Mon, 22 Apr 2013 10:08:45 +0200 Dirk Heinrichs <dirk.heinri...@altum.de> wrote:
> On Mon, Apr 22, 2013 at 12:45:35AM -0700, Paul Tötterman wrote: > > > Shouldn't environment variables be case-insensitive? What code is > > responsible for expanding those environment variables? > > This is Windows, so I'd say: "It depends". I can do this: > > C:\Program Files (x86)\Puppet Labs\Puppet\bin>echo %SYSTEMROOT% > C:\Windows > > C:\Program Files (x86)\Puppet Labs\Puppet\bin>echo %SYSTEMRoot% > C:\Windows > > But, as seen, expanding %SYSTEMROOT% in %PATH% only seems to work when > it's all uppercase... > Maybe this does not apply to your case but I once saw a crappy application that changed the type of the registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment to REG_SZ (instead of REG_EXPAND_SZ). This way other environment variables inside PATH (like %SYSTEMROOT%) were not expanded anymore and it took me ages to discover that one ;-) -Stefan -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.