delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2023/01/27/02:51:34

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F078A385842D
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1674805843;
bh=bvhWOnX/oYP8sTic3Qg9mmLyv1dTsvcCusf+/qMx1d4=;
h=Date:To:Subject:In-Reply-To:References:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
From;
b=oE7p5X6Uvw72LHEA251Vk+wiA1PaJtk9Glug6mRbANPX/0uTvWhb+C59BFfAqqBDC
lQIk1RWmFnjKahUoYpiw8EFulIEK62NiD7L3RAFCL5U2Y0z2vaxDjPdXUt03iJ2Gbr
m7P0JPGt8eNYiYomKwTrGGVPjIx0AVVi12i58qIw=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C13CF3858D20
X-Yandex-Fwd: 1
Date: Fri, 27 Jan 2023 10:44:37 +0300
X-Mailer: The Bat! (v9.3.4) Professional
Message-ID: <1139801724.20230127104437@yandex.ru>
To: john daintree <johnd AT dyalog DOT com>, cygwin AT cygwin DOT com
Subject: Re: TMP and TMPDIR mapping
In-Reply-To: <002f01d93092$ac4f7ff0$04ee7fd0$@dyalog.com>
References: <002f01d93092$ac4f7ff0$04ee7fd0$@dyalog.com>
MIME-Version: 1.0
X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_THEBAT,
NICE_REPLY_A, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS,
TXREP autolearn=no autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) 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>
From: Andrey Repin via Cygwin <cygwin AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
Cc: Andrey Repin <anrdaemon AT yandex DOT ru>
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

Greetings, john daintree!

> My understanding is that Cygwin maps $TMP and $TMPDIR (and probably others)
> to a Windows form (/cygdrive/c/tmp  -> C:\tmp)

Nop. The actual mapping depends on your settings, but defaults to /tmp which
is inside Cygwin installation root.
Another option is to mount /tmp with 'usertemp' option, which would then
redirect it to the user's %TEMP%.

> when calling a WIN32 program
> (e.g. cmd.exe). Is it possible, from bash or from Cygwin startup , to add
> additional environment variable names so that they  are also automatically
> mapped in the same way?

What is your question, exactly?
What you want to achieve and what your actual observation compared to expected
behavior?


-- 
With best regards,
Andrey Repin
Friday, January 27, 2023 10:41:46

Sorry for my terrible english...


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