public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Andrey Repin <anrdaemon@yandex.ru>
To: "KAVALAGIOS Panagiotis (EEAS-EXT)"
	<Panagiotis.KAVALAGIOS@ext.eeas.europa.eu>,
	cygwin@cygwin.com
Subject: Re: Git shows nothing in cmd.exe
Date: Wed, 11 Nov 2020 13:43:05 +0300	[thread overview]
Message-ID: <1811604523.20201111134305@yandex.ru> (raw)
In-Reply-To: <842e4318f3954a2980588059e7e431a7@BELBRU-EXMP101.eeas.europa.eu>

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


      reply	other threads:[~2020-11-11 10:50 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-10 10:35 KAVALAGIOS Panagiotis (EEAS-EXT)
2020-11-10 12:03 ` Adam Dinwoodie
     [not found]   ` <72f4f32d00e44071afbaa74b6b77ebad@BELBRU-EXMP101.eeas.europa.eu>
2020-11-10 12:56     ` Adam Dinwoodie
2020-11-10 13:35       ` KAVALAGIOS Panagiotis (EEAS-EXT)
2020-11-10 16:13         ` Brian Inglis
2020-11-11  9:28           ` KAVALAGIOS Panagiotis (EEAS-EXT)
2020-11-11 10:43             ` Andrey Repin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1811604523.20201111134305@yandex.ru \
    --to=anrdaemon@yandex.ru \
    --cc=Panagiotis.KAVALAGIOS@ext.eeas.europa.eu \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).