delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/09/17/08:13:30

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1F2D13987865
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1600344751;
bh=23hj7Idx83nKCAENZGpSfMJAr8AFR4nGB50dapNaUG0=;
h=To:References:In-Reply-To:Subject:Date:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=mpUIKAcW2WEKGrXGtrJEkKFJU6Wxm/iRkV9yHc1pDmbyZTuFbbRjS7iRhcen1gfn/
GDEYcGrxrqxTQjJajJtaTbkOrdZkuvs30tUyT4vdwT8lUvJwK6K/+PdyOyCmz+S4Wi
wfy0OYdGYJXuAJyNRDtrwkkwuMp/Q5reOpi86qmE=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org EB0673857C71
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:from:to:references:in-reply-to:subject:date
:message-id:mime-version:content-transfer-encoding:thread-index
:content-language;
bh=i7fAQ48RcnglNhiEbhp3ohyHE2RkKTrEf/+D9GCeKh0=;
b=O8S6BE2VOYWg1b/aQbQhy2TQQEOrXWWo6ZIKe7ai4z18TOqys42j7aC6m/5xeiET2Y
DNsbBKJzc3W285cRPbauXxqI4MhyXa/h1n6rJybAtDZHE1fGhRMBBEYdSo+cUqWSPDIn
IqbHlU1ir4Lx4fJjdVM259fBVvJTm2U/+UAM3P6nyqpljlWGJdV2HSIaAQE+EbpIbR2D
24WQvUV0xIq+kaBhi/6NUoAjD2dH53US9/mGummhl0D5mtWJD+pNOWBGpsb1Dfegf/Dw
Vrm3gIDbbffKLafxWotBaJHobw0tsMncszOnbGJf0nX884/tk55FcSqwCvILQ5RhTrJ0
BU5A==
X-Gm-Message-State: AOAM532Jf4EL6uLrKYDoAJ9AnDlY4uhGvcBvVu97YSABmQ7z1xJZcdE2
RrarfO+BlnpD9iqwdnv+IX7oh6dWYbI=
X-Google-Smtp-Source: ABdhPJyP4tCCci2gQNKtXlvyxc/pmhLnXwMEqaJa68LGlmCM60xhitLznnaE+hRo1nIsuLkFvZ/xFA==
X-Received: by 2002:a19:484d:: with SMTP id v74mr8840268lfa.382.1600344746516;
Thu, 17 Sep 2020 05:12:26 -0700 (PDT)
To: "=?UTF-8?Q?'Hans-Bernhard_Br=C3=B6ker'?=" <HBBroeker AT t-online DOT de>,
<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>
In-Reply-To: <9e5ab93b-9b0b-6855-d5da-365da48ecce2@t-online.de>
Subject: Sv: TMP/TEMP environment variable and /tmp
Date: Thu, 17 Sep 2020 14:12:25 +0200
Message-ID: <002001d68ceb$ce417d90$6ac478b0$@gmail.com>
MIME-Version: 1.0
X-Mailer: Microsoft Outlook 16.0
Thread-Index: AQGtB+SLy4rzy54vV5DsU04ypf6dVwG5lYaXAoJQV+ECNCtqFKmMROgg
X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,
SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2
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-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>
From: Kristian Ivarsson via Cygwin <cygwin AT cygwin DOT com>
Reply-To: sten DOT kristian DOT ivarsson AT gmail DOT com
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>

> >>> 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"


Best regards,
Kristian

[snip]


--
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