public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Andrey Repin <anrdaemon@yandex.ru>
To: john daintree <johnd@dyalog.com>, cygwin@cygwin.com
Subject: Re: TMP and TMPDIR mapping
Date: Fri, 27 Jan 2023 10:44:37 +0300	[thread overview]
Message-ID: <1139801724.20230127104437@yandex.ru> (raw)
In-Reply-To: <002f01d93092$ac4f7ff0$04ee7fd0$@dyalog.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...


  reply	other threads:[~2023-01-27  7:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-25  7:57 john daintree
2023-01-27  7:44 ` Andrey Repin [this message]
2023-01-27  9:08   ` john daintree
2023-01-27 11:32     ` Corinna Vinschen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1139801724.20230127104437@yandex.ru \
    --to=anrdaemon@yandex.ru \
    --cc=cygwin@cygwin.com \
    --cc=johnd@dyalog.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).