From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 98332 invoked by alias); 11 Apr 2018 13:43:53 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 98324 invoked by uid 89); 11 Apr 2018 13:43:53 -0000 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 Received: from mail-wm0-f50.google.com (HELO mail-wm0-f50.google.com) (74.125.82.50) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 11 Apr 2018 13:43:51 +0000 Received: by mail-wm0-f50.google.com with SMTP id 66so4272899wmd.3 for ; Wed, 11 Apr 2018 06:43:51 -0700 (PDT) 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) Received: from pc35.avibit.com ([109.73.146.188]) by smtp.gmail.com with ESMTPSA id d48sm1831036wrd.12.2018.04.11.06.43.48 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Apr 2018 06:43:48 -0700 (PDT) Subject: Re: How to handle length limit of PATH environment variable To: cygwin@cygwin.com References: <1209462188.20180405203904@yandex.ru> <87o9ixfq21.fsf@Rainer.invalid> From: Peter Bauer Message-ID: Date: Wed, 11 Apr 2018 13:43:00 -0000 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> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2018-04/txt/msg00129.txt.bz2 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