|
From: | Fabrice Popineau |
Subject: | Re: Emacs 25.2, win64, env vars |
Date: | Thu, 27 Jul 2017 18:35:32 +0200 |
> From: Fabrice Popineau <address@hidden>
> Date: Mon, 24 Jul 2017 22:34:20 +0200
> Cc: Noam Postavsky <address@hiddennet >, Emacs developers <address@hidden>
>
> So you are saying that MSYS holds two separate environment variables,
> one called "temp", the other "TEMP"? If so, what do native Windows
> programs started from such a shell get in their environment? The
> upper-case one? the first one in the order? both? something else?
>
> Both GetEnvironmentVariable) and getenv() return :
>
> TEMP=C:\MSys64\tmpy
> temp=C:\MSys64\tmp
>
> And from the shell :
>
> $ echo $TEMP
> /tmp
>
> $ echo $temp
> C:\Users\Fabrice\AppData\Roaming\Local\Temp Maybe we could remove the lower-case variant at startup, so that it
>
> So they return the win32 path from the value of the upper case variable.
won't get in the way of programs Emacs invokes? Or could that break
some use cases for people who also set their shell in Emacs to the
MSYS shell?
> My opinion (but I may well be alone) is that Emacs/win32 fiddles too much with those unix-like environments.
> This works most of the time, but it also sometimes creates surprising situations.
Environment variables are not limited to Unix, so I'm not sure why you
think it's Unix-like.
[Prev in Thread] | Current Thread | [Next in Thread] |