From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19630 invoked by alias); 25 May 2017 17:34:55 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 19550 invoked by uid 89); 25 May 2017 17:34:55 -0000 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 Received: from smtp-out-no.shaw.ca (HELO smtp-out-no.shaw.ca) (64.59.134.13) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 25 May 2017 17:34:53 +0000 Received: from [192.168.1.100] ([174.0.238.184]) by shaw.ca with SMTP id Dwf1d3PAPETFpDwf2dvC8l; Thu, 25 May 2017 11:34:56 -0600 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 Subject: Re: too many environment variables on self-compiled xar archiver Reply-To: Brian.Inglis@SystematicSw.ab.ca To: cygwin@cygwin.com References: <55609c2e-6bc5-1819-8342-815a0d79e51d@SystematicSw.ab.ca> <1882880100.20170524130132@yandex.ru> Message-ID: <5be589aa-6b72-2067-6a47-b69fe73a980d@SystematicSw.ab.ca> Date: Thu, 25 May 2017 17:37:00 -0000 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: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4wfOOqezXEzcWr5peVgUJjqxU2qMd2k1b2qWAMRsWJvv3XkCbUvA0b7fa29j16vtaaV86tHd83O+zuHR0VPyCK8+zp0bnzPweESdRpsTG2MlBqaRslit87 NH+miTKaZC/MaUPSzc2Ru5yDdqp984KqrlFliJT7zd7G4U/6FiquLntU1A+HfLrGY0esHrCPH/Vi9w== X-IsSubscribed: yes X-SW-Source: 2017-05/txt/msg00413.txt.bz2 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 =:=:\ 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