<div dir="ltr">Thanks for the feedback!<div>Much appreciated </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 3, 2014 at 3:14 AM, Peter Cordes <span dir="ltr"><<a href="mailto:peter@cordes.ca" target="_blank">peter@cordes.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Tue, Dec 02, 2014 at 04:16:45PM -0800, Dean Sniegowski wrote:<br>
> I've noticed my bash autocomplete will frequently hang.<br>
><br>
> System info:<br>
> I'm running Ubuntu 14.04.1<br>
> Bash Autocomplete 2.1-4<br>
> Authentication using sssd configured for kerberos and ldap<br>
><br>
> Suspected Cause:<br>
> in _quote_readline_by_ref() has a line elif [[ $1 == ~* ]]; then<br>
> It appears this line causes sssd to make an ldap request for all the<br>
> accounts which take a couple of seconds.<br>
><br>
> I'm fairly certain this is the cause because if I delete that elif, the<br>
> delay goes away and there are no ldap requests.<br>
><br>
> Is this a bug or is it intended to retrieve all home directories?<br>
<br>
</span> It's<br>
<a href="https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/1390061" target="_blank">https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/1390061</a><br>
<br>
And it's been fixed in git for a while now. The pattern was supposed<br>
to match a literal ~ at the front of $1, to see if that's what the<br>
completion word started with.<br>
<br>
BTW, the correct fix is to replace it with \~*, if you don't want to<br>
just grab the upstream bash_completion and plonk it down over Ubuntu<br>
Trusty's /usr/share/bash-completion/bash_completion.<br>
<a href="https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi?p=bash-completion/bash-completion.git;a=blob;f=bash_completion;h=55c9e48661028cee71301fd244c12d516303d437;hb=HEAD" target="_blank">https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi?p=bash-completion/bash-completion.git;a=blob;f=bash_completion;h=55c9e48661028cee71301fd244c12d516303d437;hb=HEAD</a><br>
(I'd go with upstream, there are a couple other bugfixes, and it works<br>
fine on my trusty system.)<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
#define X(x,y) x##y<br>
Peter Cordes ; e-mail: X(peter@cor , <a href="http://des.ca" target="_blank">des.ca</a>)<br>
<br>
"The gods confound the man who first found out how to distinguish the hours!<br>
Confound him, too, who in this place set up a sundial, to cut and hack<br>
my day so wretchedly into small pieces!" -- Plautus, 200 BC<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
Bash-completion-devel mailing list<br>
<a href="mailto:Bash-completion-devel@lists.alioth.debian.org">Bash-completion-devel@lists.alioth.debian.org</a><br>
<a href="http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/bash-completion-devel" target="_blank">http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/bash-completion-devel</a><br>
</div></div></blockquote></div><br></div>