filesystem: remove lowercase tmp/temp env vars
As pointed out in the removed comments, this doesn't seem to do what it was added for. The initial motivation comes from http://cygwin.com/ml/cygwin/2012-01/msg00201.html but the lower case tmp/temp don't seem to affect Windows programs. GetTempPath() and GetEnvironmentStrings() see the uppercase version here, so do perl and ruby. Only python for some reason prefers the lowercase version. Also cygwin and git-for-windows removed this long ago. Avoid the confusion and remove both env vars.
This commit is contained in:
parent
f7d14586f1
commit
57226453f6
@ -67,7 +67,7 @@ sha256sums=('742a7d66b7a5ebd2b8461728c5b44a46b2305fd2116208eecae5f45828938ea0'
|
||||
'22c0d481c7717eee7be0b29c69df15f65d39f16e4af50ad21919bd59259896d1'
|
||||
'5f7aa3a776dbdaae78a27e608bf004bf50d5aaace2c2b03581d940b771bc8582'
|
||||
'91f1f918cf13deab0124082086e990786113b0e710dbda4678d8fc14905ad94d'
|
||||
'6afbe2cdb04d1304cdb0ebcf679955fa8d2bb00e58480311c5d3b0eb0e7a9af3'
|
||||
'b8abe6231cd2b089d708d3e3097ef8c279af1e1594aa15c6eaab4150ed9dffdc'
|
||||
'6c0ca979c7b146b3750103b1296a399764f4e1b222ee091d3aa072b6da16c1a5'
|
||||
'cbec90c9403826bf6d8dd1fed16240b9d8695ec15df5dcdab7e485bb46c016ab'
|
||||
'1b5adfbee606fc68c4fbba5d8caded4f463bd5eed9438cf2c560129d42ba4346'
|
||||
|
||||
@ -77,18 +77,8 @@ SYSCONFDIR="${SYSCONFDIR:=/etc}"
|
||||
# them set to the default Windows temporary directory or unset
|
||||
# can have unexpected consequences for msys2 apps, so we define
|
||||
# our own to match GNU/Linux behaviour.
|
||||
#
|
||||
# Note: this uppercase/lowercase workaround does not seem to work.
|
||||
# In fact, it has been removed from Cygwin some years ago. See:
|
||||
#
|
||||
# * https://cygwin.com/git/gitweb.cgi?p=cygwin-apps/base-files.git;a=commitdiff;h=3e54b07
|
||||
# * https://cygwin.com/git/gitweb.cgi?p=cygwin-apps/base-files.git;a=commitdiff;h=7f09aef
|
||||
#
|
||||
ORIGINAL_TMP="${ORIGINAL_TMP:-${TMP}}"
|
||||
ORIGINAL_TEMP="${ORIGINAL_TEMP:-${TEMP}}"
|
||||
unset TMP TEMP
|
||||
tmp=$(exec cygpath -w "$ORIGINAL_TMP" 2> /dev/null)
|
||||
temp=$(exec cygpath -w "$ORIGINAL_TEMP" 2> /dev/null)
|
||||
TMP="/tmp"
|
||||
TEMP="/tmp"
|
||||
|
||||
@ -148,7 +138,7 @@ then
|
||||
export ACLOCAL_PATH
|
||||
fi
|
||||
|
||||
export PATH MANPATH INFOPATH PKG_CONFIG_PATH PKG_CONFIG_SYSTEM_INCLUDE_PATH PKG_CONFIG_SYSTEM_LIBRARY_PATH USER TMP TEMP PRINTER HOSTNAME PS1 SHELL tmp temp ORIGINAL_TMP ORIGINAL_TEMP ORIGINAL_PATH CONFIG_SITE
|
||||
export PATH MANPATH INFOPATH PKG_CONFIG_PATH PKG_CONFIG_SYSTEM_INCLUDE_PATH PKG_CONFIG_SYSTEM_LIBRARY_PATH USER TMP TEMP PRINTER HOSTNAME PS1 SHELL ORIGINAL_TMP ORIGINAL_TEMP ORIGINAL_PATH CONFIG_SITE
|
||||
unset PATH_SEPARATOR
|
||||
|
||||
if [ "$MAYBE_FIRST_START" = "true" ]; then
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user