delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/07/29/03:50:50

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.0 required=5.0 tests=AWL,BAYES_05,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: <AANLkTimLfGZ2JmnvuGoR1cCqzED_25hrXPV6cBrL74-q@mail.gmail.com>
References: <AANLkTimLfGZ2JmnvuGoR1cCqzED_25hrXPV6cBrL74-q AT mail DOT gmail DOT com>
Date: Thu, 29 Jul 2010 09:50:30 +0200
Message-ID: <AANLkTinCZGBwr=mrP_RkgzFF=-GhdrCnU=K44VighmJa@mail.gmail.com>
Subject: Re: Slow bash tab completion update
From: Csaba Raduly <rcsaba AT gmail DOT com>
To: cygwin AT cygwin DOT com
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 Tue, Jul 27, 2010 at 9:40 PM, John Cromartie  wrote:
> I did 'set -vx', according to Eric Blake's advice.
>
> Tab completion appears to get hung up for a very long time on 'read -r
> tmp', but only on certain paths...

Disclaimer: I am not a shell programmer.

"read" reads from stdin (or a file descriptor) and it's probably a
blocking operation. The delay may come from the command that provides
the input. It should appear on the previous line of the -x output.

I shortened the start-up delay of my bash by removing most of
/etc/bash_completion.d/
(I don't need tab-completion for FreeCiv :)

-- 
Life is complex, with real and imaginary parts.
"Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds
"People disagree with me. I just ignore them." -- Linus Torvalds

--
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