delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,T_TO_NO_BRKTS_FREEMAIL |
X-Spam-Check-By: | sourceware.org |
MIME-Version: | 1.0 |
In-Reply-To: | <4C48A0AE.8060607@cygwin.com> |
References: | <20100722171413 DOT GA943 AT ns DOT sdsitehosting DOT net> <4C48803D DOT 906 AT cygwin DOT com> <20100722184328 DOT GA3431 AT ns DOT sdsitehosting DOT net> <4C48A0AE DOT 8060607 AT cygwin DOT com> |
Date: | Fri, 23 Jul 2010 13:53:24 +1200 |
Message-ID: | <AANLkTimMoOsJxpOrcfpxiun8zAuDbhQ83_K_R_deD4lz@mail.gmail.com> |
Subject: | Re: Cygwin command line takes a long time to start |
From: | David Antliff <david DOT antliff AT gmail DOT com> |
To: | cygwin AT cygwin DOT com |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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 |
On Fri, Jul 23, 2010 at 07:49, Larry Hall (Cygwin) wrote: > OK then the easiest thing to do is add "set -x" to your ~/.bash_profile > and watch where the delay happens as the statements scroll by. Ah, that's useful - I also have a 10-second-or-so delay when mintty starts. By using a bunch of 'echo' commands and that set -x (which of course extends the time, but at least makes it clear if anything is 'hanging') it's clear to me that the majority of the delay (about 6 seconds) happens before .bash_profile executes. I am loading bash_completion and it does take about 5 seconds, but that's the last thing to run before the prompt appears, and the delay is happening before that. How would one go about debugging the bash or mintty startup before .bash_profile is read? -- David. -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |