Git shows nothing in cmd.exe

Andrey Repin anrdaemon@yandex.ru
Wed Nov 11 10:43:05 GMT 2020


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...



More information about the Cygwin mailing list