delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2024/04/17/17:35:30

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C0630385F014
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1713389728;
bh=fXQeI9Y2b56shAItHFwU/nCabOOpjtoygsorcmuYxns=;
h=Date:To:Subject:In-Reply-To:References:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
From;
b=SQxxStIYNp4PXS40OGXIpQ7SmijhMyEsgbxsXB+M/spujFJ0uuYpSZ9PZGPS0oZVU
VlqRr9JOeL+wYuXtEkxnO6bwySHE+7CrPrdjMdqSuVr/sthgTCn5d5rXJ5vrDUftgY
zc8gP3+PWjADz3ix3yIXoQHkCCi+xWV9lnObZ3C8=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4784B3858CD1
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 4784B3858CD1
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1713389708; cv=none;
b=SiI1uJ1uExPgyyAdGjSU8/e90ZVHYIpQme6+VpsLoawbWVDLYII7kiDriFvUW/lmynzzpyDrXewdeGOxL3om3bqWZGPIg6zSoC8uTuOloTBaJKg2G4cQHMDIFKqu/tJptuqF1WXCbKN7SYBI1IYBQb8pPfdbZTY15XKOuJ5r6VU=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1713389708; c=relaxed/simple;
bh=9anmOHLkOTloc+3AuYBN+qYaZunaitbJUOzTaTfYjK4=;
h=DKIM-Signature:Date:From:Message-ID:To:Subject:MIME-Version;
b=xKj76F+Pk+Ahc78Zy9E+ACo21CbTIN2Bd4QAG/+ymLg0kwY4c3s5Q+0QJyA1jR9EFXEDYgK3b89QhGPt1bOhmKxtCgA3kqVAE6azxdQnfzMXQfkfQ3lgDqCx1pNnsavH3g6szUzVmCdbCeM3m867y4nOIN3lguKODtYUduuTy9s=
ARC-Authentication-Results: i=1; server2.sourceware.org
X-Yandex-Fwd: 1
Date: Thu, 18 Apr 2024 00:22:44 +0300
X-Mailer: The Bat! (v9.3.4) Professional
Message-ID: <297943415.20240418002244@yandex.ru>
To: J M <cesarjorgemartinez AT gmail DOT com>, cygwin AT cygwin DOT com
Subject: Re: See repeated /usr/bin in my path
In-Reply-To: <CAL8MddXWyfRsQHz4NGZtaEx1oa_hmbozrV9c37+NvJaq7YWMBQ@mail.gmail.com>
References: <CAL8MddU6u9he5YjgaycQ2Su4qZAJ86a7zHD9buoN_3D6kW2VrQ AT mail DOT gmail DOT com>
<CAL8MddXWyfRsQHz4NGZtaEx1oa_hmbozrV9c37+NvJaq7YWMBQ AT mail DOT gmail DOT com>
MIME-Version: 1.0
X-Spam-Status: No, score=-2.0 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, SPF_HELO_NONE, SPF_PASS, TXREP,
XM_LIGHT_HEAVY autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Andrey Repin via Cygwin <cygwin AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
Cc: Andrey Repin <anrdaemon AT yandex DOT ru>
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

Greetings, J M!

> I think that is a bug, in my Windows environment path I have this:
> C:\cygwin64\bin

> Then for some mystery change this to /usr/bin, instead to delete.
> You can file an issue?

It's not a bug, it's how Cygwin works.
If you want to have Cygwin in your system PATH, you'll have to, either
a) tolerate the duplicated entries in session's $PATH, or
b) do something to fix it.

I use this scriptlet:

PATH="$( tr ":" "\\n" <<<"$HOME/bin:$HOME/.local/bin:/usr/local/bin:/bin:$PATH" | sed -Ee "1,4b; \\#Subversion|$HOME|^(/usr(/local)?)?/bin\$#d;" | paste -sd:)" export PATH

(Essentially, I push 4 predefined paths on top of the stack, then filter out
the rest of the stack by some known patterns.)


-- 
With best regards,
Andrey Repin
Thursday, April 18, 2024 00:07:59

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019