From: Brian Inglis <Brian.Inglis@SystematicSw.ab.ca>
To: cygwin@cygwin.com
Subject: Re: too many environment variables on self-compiled xar archiver
Date: Thu, 25 May 2017 17:37:00 -0000 [thread overview]
Message-ID: <5be589aa-6b72-2067-6a47-b69fe73a980d@SystematicSw.ab.ca> (raw)
In-Reply-To: <de885ea6-c719-e69f-0fd2-dd1bfdb13f9f@t-online.de>
On 2017-05-24 15:18, Hans-Bernhard Bröker wrote:
> Am 24.05.2017 um 12:01 schrieb Andrey Repin:
>
>>> Did you notice this entry and does anyone know where this comes from?
>>> !C:=C:\cygwin\bin
>
>> This is coming from CMD, and denotes current working directory on an
>> indicated
>> drive.
>
> And for (most of) all the hairy details, see
>
> https://blogs.msdn.microsoft.com/oldnewthing/20100506-00/?p=14133
>
> If you see these, you must have printed the environment using a tool
> other than CMD itself (e.g. Cygwin's "env").
Or as comment
https://blogs.msdn.microsoft.com/oldnewthing/20100506-00/?p=14133#comment-830913
says, in cmd type
set "
to see all environment variables including those starting with "=".
So the above is Cygwin "cleaning" the inherited cmd environment which
contains =<d>:=<d>:\<wd> for each mapped drive, and some other legacy
compatible information, by changing the leading "=" to "!", so it can
restore it for child process environments.
--
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
prev parent reply other threads:[~2017-05-25 17:34 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-23 22:59 Michael Stellar
2017-05-24 3:34 ` Brian Inglis
2017-05-24 7:52 ` Michael Stellar
2017-05-24 10:05 ` Michael Stellar
2017-05-24 10:05 ` Andrey Repin
2017-05-24 23:36 ` Hans-Bernhard Bröker
2017-05-25 14:50 ` Andrey Repin
2017-05-25 17:37 ` Brian Inglis [this message]
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=5be589aa-6b72-2067-6a47-b69fe73a980d@SystematicSw.ab.ca \
--to=brian.inglis@systematicsw.ab.ca \
--cc=cygwin@cygwin.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).