delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/09/17/11:24:26

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 5B0E23894C16
Authentication-Results: sourceware.org;
dmarc=none (p=none dis=none) header.from=towo.net
Authentication-Results: sourceware.org; spf=none smtp.mailfrom=towo AT towo DOT net
Subject: Re: Sv: TMP/TEMP environment variable and /tmp
To: cygwin AT cygwin DOT com
References: <025401d68c06$9a89e8b0$cf9dba10$@gmail.com>
<CAB8Xom9qowtQ+Jq1Z4tOxCHrVAugNyQ7UpVT3gXm1yJ9yj=bfg AT mail DOT gmail DOT com>
<202459f2-75cc-1ac2-7953-67f98e6fdb35 AT towo DOT net>
<9e5ab93b-9b0b-6855-d5da-365da48ecce2 AT t-online DOT de>
<002001d68ceb$ce417d90$6ac478b0$@gmail.com>
From: Thomas Wolff <towo AT towo DOT net>
X-Tagtoolbar-Keys: D20200917172331333
Message-ID: <3423eb8a-447e-015e-9eb7-84d455db0c4f@towo.net>
Date: Thu, 17 Sep 2020 17:23:31 +0200
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101
Thunderbird/68.12.0
MIME-Version: 1.0
In-Reply-To: <002001d68ceb$ce417d90$6ac478b0$@gmail.com>
X-Provags-ID: V03:K1:X1qyYgcRZ7MQgy+DfImHhLs3Ui2YnKybEPBR0I0xS/HdvQAsC6D
i6jd6hY9x7251uC38EP0aHNjAIcHIPmxvwANZMUfNSFvzwlwjfdSHiq75mQJ+UtnobHEmWD
BxmGxG+6JUnap7jCTxxcsL7T+gXvSqL9/bZidI4o4SDpCCQG0NIcbRE/xwb3DaFL1OeWbsx
TXVQNrKJU6RlL9AkKqLCA==
X-UI-Out-Filterresults: notjunk:1;V03:K0:BSv1MH1b6xc=:0u7SCld+udtTVRSnQNSgjT
OlXsSfzGeBsZH/4o1n7BHq9lTEDiIKC9AHkpAuGwMtjxo+ylzDhg+hmdmwUwA9PNiDUh6laK1
IJmf4gsqUGnIOIKtGcJrJqiy5Tw9mY5iDefISqOUPkfs+cIsAh2JliLV0XQiSq1KdJdnnjsIb
rTdwGzZI0FSsRAnSsmOOKz5U2/fxLRARCVPKubWgRk4VnHi64WPHyFxVTrY+lYfqtlg0Tir/G
Ja5G4PjLS73itMTVtFbO0DgJj/qxJXLe/u3SkQSlZF6X72aiN77gUJkEw7kbB2v53CMurcRU5
HVU6iRSIxv9WBQed5U8tCyp4X7eoOmpJ97gP0z+nfSTWJQv+gWu2g5xf8+DlAoPxuuxKOo6AQ
w/YS37QyCZBcyDaEznuz8bXGx2pNOIuhyffye9f0haJfg7VP2KD0cdwJbBxLXIbX+PcgS2s1D
VaB1g0HUuc5dBXpV5ZUgQERuHDg5aclfAPbzjGmwZqeMc+yf/xvhLAitz3q1mdpzZFn9COy9d
pKJpp4Ji/fB43jmNkRfsOAnnFNAR2ibL3FwHNf11/GDHXCtUVqPCj7GsryWzMDmo1nU7ZNV3g
IufRSHBeLMLpl1rSKHT+M+c9CJsKSNtN8oKyAap6K12rtrdJXCl8uho5HvCRC7WpIQim07JBL
U9PnfLhgjr3xnTo20YMV2A3+B/rrwOYxNXLjmaoiMKnr0T74d084WRQvMQOa7kLN6KG40z8HZ
o885+7Oewk02XRfmY9ofVYindGx7Hw+DDllxWVP8Hhj23xCOEKjbNSjUcPbToHgudVKTKHFPg
+ye9tNoDeqtnKsWk11CkQEaCqOag+JqCB1cZfFHUyWgTErmRo/UV2qi2e6i0KOmwHXutLJH
X-Spam-Status: No, score=1.5 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS,
KAM_LAZY_DOMAIN_SECURITY, NICE_REPLY_A, RCVD_IN_ABUSEAT, RCVD_IN_DNSWL_NONE,
RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NONE,
TXREP autolearn=no autolearn_force=no version=3.4.2
X-Spam-Level: *
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Errors-To: cygwin-bounces AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>


Am 17.09.2020 um 14:12 schrieb Kristian Ivarsson via Cygwin:
>>>>> Does anyone know the rational with this behaviour and what can be
>>>>> done to get hold of the (real) Windows TMP/TEMP
>>>>> environment-variable-values (in a
>>>>> (hopefully) platform independent way) ?
>>>> so if you are making your custom tree, try to stick on that
>>>> expectation and have both directories.
>>> In general, you are free to set TMP to a directory of your choice,
>>> that's the purpose of that variable, no need to sync it with some root.
>>> There is a comment in /etc/profile:
>>>     # TMP and TEMP as defined in the Windows environment
>>>     # can have unexpected consequences for cygwin apps, but it does not
>>> explain what consequences that might be; probably some trouble with
>>> ACL/access permissions for temporary files.
>> Nowadays that would be $LOCALAPPDATA/Temp, or if you really insist, the
>> content of /proc/registry/HKEY_CURRENT_USER/Environment/TMP (or TEMP),
>> after similarly expanding environment variable references found in that.
>>
>> The fact that getting Windows' idea of the user's TEMP directory is not
>> immediately platform independent may well have been part of the rationale
>> for not even trying that.
>
> Well, at least it's up to the user
>
> If the user sets its TMP-variable to "C:\Jabba Dabba Dooo" or "/jabba dabba doo", I expect the value of getenv("TMP") should be just that and regardless of OS the value returned is whatever the variable is set to and not magically changed to "/tmp"
Of course and that's not happening, no worries. The issue was that TMP 
is set in /etc/profile and not inherited from the Windows environment.
--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019