X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E6841385841E
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1713390258;
	bh=mFpS6POMffu2yFvc+5Qnqc3ttEIKcAcGp41U6mIrK/o=;
	h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe:
	 List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
	 From;
	b=WRanjBANvn5bqwvHtHhRnlrdR5ZfqV0X6U58uMqqlK4Tp3qPx6gXJsmDqvUo0Tf+h
	 OXVUkhSfAACFaIKgaiMqUFf7ctpi0xRyIChKTMzApDBg1Te8n1W0HAoTo0qITdp3O9
	 5nrU3QX/roMCkfbuoBwXGMyzhis5q3dNkpgbSxcQ=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D0DCE3858D20
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org D0DCE3858D20
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1713390239; cv=none;
 b=d/a0+hDooUOnRTe0uCQ9qBoh4a80PmBRZWsyt65YblMsh0e7X+TS4s50K6spOU1nNJXWG6WI5Ll/e91xwlqYS7E1sLDviiUlH6W5D4kdlh42N9fY9neJ3a2wYtb4GksgHBz96TTHhtYgr5XxVaOGHfr6nOivtIxYrf90vrOVgvk=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
 t=1713390239; c=relaxed/simple;
 bh=It0X+CzhBIL6UITkuyYu09sshv9fzHIq+IpZOHzBLUU=;
 h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To;
 b=bJvAWzdu5HiaGzfJc+SDqn3Isph/jy8om93MCKc5cwVAkBuBuM9opWC5YqOhUA7a8e/+Jx16bY6sL0X2mfzOD9CAIlNhNJBmaF/AppwWwBRj2YxH+tXhPZQWFGuTE416vJjq9SbsxNH1dVAdeUCvHwsCC8nFkwgdwMXbIq9OWsQ=
ARC-Authentication-Results: i=1; server2.sourceware.org
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1713390235; x=1713995035;
 h=to:subject:message-id:date:from:in-reply-to:references:mime-version
 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=It0X+CzhBIL6UITkuyYu09sshv9fzHIq+IpZOHzBLUU=;
 b=ZiabfZi7bHzNt0oqt0unQz3UM/zt+7kWczK5T8owfffvSAghHmu2RlCaxj6FOFNgOh
 ueGE6mJZVzb38v44e/NbOI3fzUTKqZeW6+U0eQKATIXXKXgPXGBsxJAwzoZVu9fLSYdv
 fe694h/zRyx3BOa3yV2lRRpM0bhD5rQpaOoPDzxDZ5Sv88AUFRliuu+/ZFwLhjrEzsUj
 qnk0pGdjrTojaT/Hm4fuhupwal1LcTo/nvLhVVAguQNt+JNvNtTOFH3X1DpCbkifn4+u
 hrln6qHO3giGH/hTg7mFRQ6sj2WoNSSi+1lwZmKC9N9c4b/mZdH+NPQ0OXvFZT311+8M
 JGkQ==
X-Gm-Message-State: AOJu0YyMF6+8mrR095VxhZ+2PwsLn2qpW2Gr54LgdffhVu1B4s+my4V9
 /07PwILdpisLjztX3crjJP6It3T7Tq6YnPmG0FdjgW8M90bTUnJ+arhtyhPPNz/gq1LW3sm8/rM
 Yz3VKeewndubcWQxtFifTczwHDbobjA==
X-Google-Smtp-Source: AGHT+IGFsPHvjpwf2xXaWS46iygHdXPkARW1bw9JxTJ1WYK9joyC2j8VGNhNmG9NjIfFw2VOP180HCpufpXEiua38UY=
X-Received: by 2002:a17:90a:1c0f:b0:2a6:bd41:a05e with SMTP id
 s15-20020a17090a1c0f00b002a6bd41a05emr813274pjs.9.1713390235575; Wed, 17 Apr
 2024 14:43:55 -0700 (PDT)
MIME-Version: 1.0
References: <CAL8MddU6u9he5YjgaycQ2Su4qZAJ86a7zHD9buoN_3D6kW2VrQ@mail.gmail.com>
 <CAL8MddXWyfRsQHz4NGZtaEx1oa_hmbozrV9c37+NvJaq7YWMBQ@mail.gmail.com>
 <297943415.20240418002244@yandex.ru>
In-Reply-To: <297943415.20240418002244@yandex.ru>
Date: Wed, 17 Apr 2024 23:43:43 +0200
Message-ID: <CAL8MddVrZqq6O9=jCP39Aht5qV_T11tbFSMr0Y5qUJUjYa7Xjg@mail.gmail.com>
Subject: Re: See repeated /usr/bin in my path
To: cygwin@cygwin.com
X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_00, DKIM_SIGNED,
 DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE,
 RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS,
 TXREP 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-Content-Filtered-By: Mailman/MimeDel 2.1.30
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: J M via Cygwin <cygwin@cygwin.com>
Reply-To: J M <cesarjorgemartinez@gmail.com>
Content-Type: text/plain; charset="utf-8"
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie.com@cygwin.com>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 43HLiKqZ3362636

Hi Andrew,

Isn't it better that original_path be removed all startwith
$mycygwin_homepath?

You have this scriptlet, but if you need all to work with all Linux
distributions you need yo add unnecessary work, multiple code and cases for
all, and complicate all.

Regards

El mié., 17 abr. 2024 23:35, Andrey Repin <anrdaemon@yandex.ru> escribió:

> 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

