Re: TMP and TEMP get redefined, but I need the original values

2011-06-14 Thread Roland Bluethgen
szgyg wrote: Windows stores the environment variables in the registry, under `HKEY_CURRENT_USER\Environment' and `HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment'. You can access these through /proc/registry in cygwin. For an example see the PRINTER setting in /

Re: TMP and TEMP get redefined, but I need the original values

2011-06-13 Thread Roland Bluethgen
Thorsten Kampe wrote: * Roland Bluethgen (Sun, 12 Jun 2011 23:01:12 +0200) TMP in Cygwin is "user-crafted"? TMP in Windows? TMP in your script? TMP in Windows. Also, this approach would defeat the intended purpose of the redefinition of TMP (avoiding permissions screwup). Or am

Re: TMP and TEMP get redefined, but I need the original values

2011-06-12 Thread Roland Bluethgen
Thorsten Kampe wrote: If you want Linux TMP and Windows TMP point to the same directory then mount it in fstab or use $USERPROFILE/AppData/Local/Temp. I shortened the story a bit, it's really more complicated. The TMP definition in my case is user-crafted, not the default value which is norma

Re: TMP and TEMP get redefined, but I need the original values

2011-06-12 Thread Roland Bluethgen
Andy Koppe wrote: On 12 June 2011 20:07, Ken Brown wrote: On 6/12/2011 1:55 PM, Roland Bluethgen wrote: But then, this modification would probably get overwritten the next time something is changed in that file on the distribution side. No, it wouldn't get overwritten. Your /etc/profile

TMP and TEMP get redefined, but I need the original values

2011-06-12 Thread Roland Bluethgen
Hey folks! I don't update my Cygwin installation regularly, but recently I did, and then a script of mine stopped working. Looking for the cause I found out that the Cygwin maintainers chose to redefine the TEMP and TMP environment variables in /etc/profile like this: unset TMP TEMP TMP="/t