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: List-Subscribe: List-Archive: List-Post: List-Help: , 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 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: <55609c2e-6bc5-1819-8342-815a0d79e51d AT SystematicSw DOT ab DOT ca> <1882880100 DOT 20170524130132 AT yandex DOT ru> 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: 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 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