From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg1-x52d.google.com (mail-pg1-x52d.google.com [IPv6:2607:f8b0:4864:20::52d]) by sourceware.org (Postfix) with ESMTPS id D0DCE3858D20 for ; Wed, 17 Apr 2024 21:43:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D0DCE3858D20 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org D0DCE3858D20 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::52d 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 Received: by mail-pg1-x52d.google.com with SMTP id 41be03b00d2f7-5d8ddbac4fbso118379a12.0 for ; Wed, 17 Apr 2024 14:43:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713390235; x=1713995035; darn=cygwin.com; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=It0X+CzhBIL6UITkuyYu09sshv9fzHIq+IpZOHzBLUU=; b=Bn2aoSYD/qk/efl3b3Dl+7RN2r6bE7NG6MAt6Ytk35kISaa90lXMXWsipGI+7E0Qg4 8EqU4l+aA+jQ/t8mlLop/fAHTGl8JPz9s9fECzfU9r6cMhTCQgAOE4ulEc1kBrZ0LSwK 3FN96kIKsUURBQsBDXquqCLYD9AW+eg4PBEhDkFWnqcRQtrLEeDccCueA501z4SFXLNn s6qsgmzQ2ayPVLpamdC36p6DcFmiPDifKcxYHiJsvvtYWSJVnWxva0zUxAGKUYL0kxpC Rzjah16RHtTTScvocMTeEitu9FQCgCh0DV2nyBdoDb46Sm8ouKqbOJ/qkdnU900mdnag UMag== 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: <297943415.20240418002244@yandex.ru> In-Reply-To: <297943415.20240418002244@yandex.ru> From: J M Date: Wed, 17 Apr 2024 23:43:43 +0200 Message-ID: Subject: Re: See repeated /usr/bin in my path To: cygwin@cygwin.com Content-Type: multipart/alternative; boundary="0000000000005a6ff8061651c077" 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 List-Id: --0000000000005a6ff8061651c077 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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=C3=A9., 17 abr. 2024 23:35, Andrey Repin escrib= i=C3=B3: > 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=3D"$( 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... > > --0000000000005a6ff8061651c077--