delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/04/11/09:44:03

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=EeeylkHHZSjg3J1L
Rw1LCeWAs1bir/XfMrC5gJVgAlDSsdOqYoz5eQckkgALsSqDRnlkCcHMDHJERYM1
5KXblScEpV6gAyVO9lng6HfX6lZWwvQ56Q7rjD6/WTLl3+GGIlDTgt4BL7hA5bpz
vLY1HYerMUut8ySCiEiaDxkKdlw=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=59fGn1eumpLSCEHV6kUHCG
BHOeA=; b=PERZjZ9GjRyE4uMoQCMIIGReCB9A7Jo1CF3GcPK8clYxQqaseOqCzc
LZtLaA5z6T60O7R/bGUV8m2C7bpaN3FnNu7BxErkJrQ/cadHvCXIpj4GPPviQ2Ah
3L/TBx9PL12YEU8Mqfo7wpTNI7N/0nbpbyqAi2BEqBAneq4PEa71I=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=lean, packaged, thx, moral
X-HELO: mail-wm0-f50.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=2MWVjarC0Dp8fNgQYfRsLM9hPZ0zUF3+roxFzUyS600=; b=RPhQZ/tr+FZdTGfI5wo+ZCDSALFbPnZKu4drFbYWp5/6MSrjEUS+DHhT8Loujxs8xu 8FPvybI+5sAq8ak6FroeMowSkuLZRV9UUwiKM+FhB0rAkNOc+b5vdGfOl8qCVlxFWrQ2 Jx1fJUMwNHTjv/SAgeobvZIsxnVCBhNAP20GSJ6WEkaj1MpeGfbKWYpd9lfnZKIm+xLI 1YPSK+B8W0PkKpzXtmM5rhFfvHw5JBcK5HUKVENAzPwyFr2e+P0XDXaFUfMFUXmUXH6R IWjkQidvQgk0F8kRbYzll4DS7HyTJQmCSLqLw9B/4wHqMwyHKLzCPARqLUYt2T32ppdO PeRQ==
X-Gm-Message-State: ALQs6tCX/+WWhlvLqjta3Ipn+k2peHpvvHtz611v+pIrWHjuZcRFbrVP /mugPhcCAj1gYEevVEXoryNx6g==
X-Google-Smtp-Source: AIpwx4+KCaFc0FbzYfpfUel82pwgsCM1fCq33hpQxQPV9HaVoCwlLAeqAem07DdwVk0B2V9ygl2CGg==
X-Received: by 10.28.63.148 with SMTP id m142mr2825089wma.153.1523454229429; Wed, 11 Apr 2018 06:43:49 -0700 (PDT)
Subject: Re: How to handle length limit of PATH environment variable
To: cygwin AT cygwin DOT com
References: <ebd804f3-8e24-d96f-7ef4-0e1279afd929 AT gmail DOT com> <1209462188 DOT 20180405203904 AT yandex DOT ru> <87o9ixfq21 DOT fsf AT Rainer DOT invalid>
From: Peter Bauer <peter DOT m DOT bauer AT gmail DOT com>
Message-ID: <e30bb5c7-b61c-9465-0407-3c3f2af57d8b@gmail.com>
Date: Wed, 11 Apr 2018 15:43:47 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0
MIME-Version: 1.0
In-Reply-To: <87o9ixfq21.fsf@Rainer.invalid>
X-IsSubscribed: yes

On 04/05/2018 08:47 PM, Achim Gratz wrote:
> Andrey Repin writes:
>> P.P.S.
>> Partial solution could be a wrapper that reduce PATH length by dropping
>> nonessential/duplicate/Win-specific paths before invoking Cygwin terminal.
>> I have such a wrapper for my own reasons.
> You don't need one if your login shell is a POSIX shell and you don't
> use Windows applications if you have set a system or user variable
> CYGWIN_NOWINPATH to a non-empty value.  For tcsh I have patched
> /etc/csh.login to do the moral equivalent; I guess that should be
> packaged with tcsh eventually.
>
> It's usually way easier to add to a clean path than removing cruft and I
> generally lean into the direction of using wrapper scripts for Windows
> applications that I need to use from Cygwin since quite often some other
> things need attention aside from PATH.
>

i went for this solution as the default PATH after opening a Cygwin 
terminal was already ~2000 characters long.

thx a lot,
Peter

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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