From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from forward106p.mail.yandex.net (forward106p.mail.yandex.net [77.88.28.109]) by sourceware.org (Postfix) with ESMTPS id DE0373857C5E for ; Wed, 11 Nov 2020 10:50:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org DE0373857C5E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=yandex.ru Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=anrdaemon@yandex.ru Received: from mxback25g.mail.yandex.net (mxback25g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:326]) by forward106p.mail.yandex.net (Yandex) with ESMTP id 0FD0C1C825A7; Wed, 11 Nov 2020 13:50:02 +0300 (MSK) Received: from sas8-6bf5c5d991b2.qloud-c.yandex.net (sas8-6bf5c5d991b2.qloud-c.yandex.net [2a02:6b8:c1b:2a1f:0:640:6bf5:c5d9]) by mxback25g.mail.yandex.net (mxback/Yandex) with ESMTP id y1vqkbdDPq-o1YWiZdM; Wed, 11 Nov 2020 13:50:02 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1605091802; bh=yHCNkUK4/BdiYo9Ir8BSHpkZGYSm5WCtjyauGz4EkMc=; h=In-Reply-To:Subject:To:Reply-To:From:Message-ID:References:Date; b=tq/xSQA7vgnqK542cxGbyL4QXivIZZartFW1NUnklDSdkw+1xxuEJhhS3iXEH92ZU xoOhyum3KVHZXhsq0WyE+gCdQWbY4ocqSwOJr7PXMC/7IggrtZzGttBg3Hv1v2x3ra MG74/xjBGCB8APE79t2PCVT7DMxPQgJB1VMwvCK0= Authentication-Results: mxback25g.mail.yandex.net; dkim=pass header.i=@yandex.ru Received: by sas8-6bf5c5d991b2.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id 5gb4ivALUk-o1mWW1QU; Wed, 11 Nov 2020 13:50:01 +0300 (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (Client certificate not present) Received: from [192.168.1.10] (HELO daemon2.darkdragon.lan) by daemon2 (Office Mail Server 0.8.12 build 08053101) with SMTP; Wed, 11 Nov 2020 10:43:05 -0000 Date: Wed, 11 Nov 2020 13:43:05 +0300 From: Andrey Repin X-Mailer: The Bat! (v6.8.8) Home Reply-To: cygwin@cygwin.com X-Priority: 3 (Normal) Message-ID: <1811604523.20201111134305@yandex.ru> To: "KAVALAGIOS Panagiotis (EEAS-EXT)" , cygwin@cygwin.com Subject: Re: Git shows nothing in cmd.exe In-Reply-To: <842e4318f3954a2980588059e7e431a7@BELBRU-EXMP101.eeas.europa.eu> References: <7f84cfbe25454067bc2841a83306f7de@BELBRU-EXMP101.eeas.europa.eu> <72f4f32d00e44071afbaa74b6b77ebad@BELBRU-EXMP101.eeas.europa.eu> <09a3fd0d-81ba-11c0-1e85-b3578f39e9f6@SystematicSw.ab.ca> <842e4318f3954a2980588059e7e431a7@BELBRU-EXMP101.eeas.europa.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_THEBAT, NICE_REPLY_A, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Nov 2020 10:50:06 -0000 Greetings, KAVALAGIOS Panagiotis (EEAS-EXT)! > PATH is indeed yet another headache. We are trying to prepend or append > entries to set correctly the behaviour by overriding other applications to > no avail. Issues can still be faced. This is why I do @ECHO OFF SET OLDPATH=%[PATH] SET _CBIN=%@RTRIM[\,%@PATH[%@FULL["%~0"]]] SET _CLBIN=%@RTRIM[\,%@PATH[%[_CBIN]]]/usr/local/bin SET PATH=%[_CLBIN];%[_CBIN] DO _path IN /T";" /L %[OLDPATH] IFF "%[_path]" == "%[_CLBIN]" THEN CONTINUE ENDIFF IFF "%[_path]" == "%[_CBIN]" THEN CONTINUE ENDIFF SET PATH=%[PATH];%[_path] ENDDO UNSET OLDPATH _CBIN _path in my cygwin startup wrapper. The regular path do contain /bin but not at the front. -- With best regards, Andrey Repin Wednesday, November 11, 2020 13:37:47 Sorry for my terrible english...