delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/05/25/13:35:22

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:subject:reply-to:to:references:message-id
:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=aKzGiXFK9/lM3EBg
hNSsCwhjvtFHIvfh6MH1hJEp/O3RnON28kvQfq5EkG2NafiajWpDB4MvG2rULYPb
H+0aMDFJjcUWLj/SPffL9TnyPF95HGYDXKpFD8YumOZmmQSbrPbtHPqSuXC2AwZH
SsBpHBZxVd6UAnQEDZc72WP0Y1E=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:subject:reply-to:to:references:message-id
:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=akkLIcEOR9pAXuMmItzXoc
ySIW4=; b=GoCdpRwsp6ylk5qfpf+2QUhEXWi0h2xYbbRUF1Qh1nwd4VtEwZ295q
6/CYWz7Ne+3Llt08c/RMjJ/+7gzAGrK67f2vPnyi7SXq+A6iuCzbCW5ySi9lARGB
Nl9/s8w9pkE9PqrQeSaduiIbOVCA6bcpi7z9R+NU3z/FSGZLETmLE=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=1.0 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=24052017, 24.05.2017, 14133, blogs.msdn.microsoft.com
X-HELO: smtp-out-no.shaw.ca
X-Authority-Analysis: v=2.2 cv=dZbw5Tfe c=1 sm=1 tr=0 a=WqCeCkldcEjBO3QZneQsCg==:117 a=WqCeCkldcEjBO3QZneQsCg==:17 a=IkcTkHD0fZMA:10 a=yMhMjlubAAAA:8 a=Vs2i6zd9I2bM-fN1PtMA:9 a=QEXdDO2ut3YA:10
From: Brian Inglis <Brian DOT Inglis AT SystematicSw DOT ab DOT ca>
Subject: Re: too many environment variables on self-compiled xar archiver
Reply-To: Brian DOT Inglis AT SystematicSw DOT ab DOT ca
To: cygwin AT cygwin DOT com
References: <CAL5LfdTT-FQpZCBEr=r2ntU9NibGF2hRU=e6fd_R-4n39RKwng AT mail DOT gmail DOT com> <55609c2e-6bc5-1819-8342-815a0d79e51d AT SystematicSw DOT ab DOT ca> <1882880100 DOT 20170524130132 AT yandex DOT ru> <de885ea6-c719-e69f-0fd2-dd1bfdb13f9f AT t-online DOT de>
Message-ID: <5be589aa-6b72-2067-6a47-b69fe73a980d@SystematicSw.ab.ca>
Date: Thu, 25 May 2017 11:34:55 -0600
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1
MIME-Version: 1.0
In-Reply-To: <de885ea6-c719-e69f-0fd2-dd1bfdb13f9f@t-online.de>
X-CMAE-Envelope: MS4wfOOqezXEzcWr5peVgUJjqxU2qMd2k1b2qWAMRsWJvv3XkCbUvA0b7fa29j16vtaaV86tHd83O+zuHR0VPyCK8+zp0bnzPweESdRpsTG2MlBqaRslit87 NH+miTKaZC/MaUPSzc2Ru5yDdqp984KqrlFliJT7zd7G4U/6FiquLntU1A+HfLrGY0esHrCPH/Vi9w==
X-IsSubscribed: yes

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019