X-Recipient: archive-cygwin AT delorie DOT com X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com 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 AT yandex DOT ru 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 Date: Wed, 11 Nov 2020 13:43:05 +0300 From: Andrey Repin X-Mailer: The Bat! (v6.8.8) Home X-Priority: 3 (Normal) Message-ID: <1811604523.20201111134305@yandex.ru> To: "KAVALAGIOS Panagiotis (EEAS-EXT)" , cygwin AT cygwin DOT com Subject: Re: Git shows nothing in cmd.exe In-Reply-To: <842e4318f3954a2980588059e7e431a7@BELBRU-EXMP101.eeas.europa.eu> References: <7f84cfbe25454067bc2841a83306f7de AT BELBRU-EXMP101 DOT eeas DOT europa DOT eu> <72f4f32d00e44071afbaa74b6b77ebad AT BELBRU-EXMP101 DOT eeas DOT europa DOT eu> <09a3fd0d-81ba-11c0-1e85-b3578f39e9f6 AT SystematicSw DOT ab DOT ca> <842e4318f3954a2980588059e7e431a7 AT BELBRU-EXMP101 DOT eeas DOT europa DOT eu> MIME-Version: 1.0 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 AT cygwin DOT 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: , Reply-To: cygwin AT cygwin DOT com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces AT cygwin DOT com Sender: "Cygwin" 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... -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple