From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by sourceware.org (Postfix) with ESMTPS id EB0673857C71 for ; Thu, 17 Sep 2020 12:12:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org EB0673857C71 Received: by mail-lf1-x12f.google.com with SMTP id q8so1917933lfb.6 for ; Thu, 17 Sep 2020 05:12:27 -0700 (PDT) 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) Received: from JOKK (87-249-176-245.ljusnet.se. [87.249.176.245]) by smtp.gmail.com with ESMTPSA id 18sm5595003lfg.29.2020.09.17.05.12.25 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 Sep 2020 05:12:26 -0700 (PDT) From: To: =?UTF-8?Q?'Hans-Bernhard_Br=C3=B6ker'?= , References: <025401d68c06$9a89e8b0$cf9dba10$@gmail.com> <202459f2-75cc-1ac2-7953-67f98e6fdb35@towo.net> <9e5ab93b-9b0b-6855-d5da-365da48ecce2@t-online.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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQGtB+SLy4rzy54vV5DsU04ypf6dVwG5lYaXAoJQV+ECNCtqFKmMROgg Content-Language: en-gb 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@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Sep 2020 12:12:30 -0000 > >>> 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) ? >=20 > >> 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. >=20 > 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. >=20 > 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]