X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=1.1 required=5.0 tests=AWL,BAYES_50,RCVD_NUMERIC_HELO,SPF_HELO_PASS,TW_VC,TW_VW,TW_YG,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Jacob Jacobson Subject: Re: Tab Completion Problem Date: Fri, 09 Jul 2010 14:16:04 -0500 Lines: 54 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 In-Reply-To: X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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 7/8/2010 9:08 AM, Jacob Jacobson wrote: > I recently updated my Cygwin installation and now I get, > > [~$:501] cd /c/home/bash: exclude: unbound variable > [~$:501] > > when I hit TAB. > > I have seen Eric's announcement & followed that. > > >> A new release of bash-completion, 1.2-1, is now available for > >> download, leaving 1.1-2 as previous. > > >> NEWS: > >> ===== > >> This is a new upstream release. > > I put - > . /etc/bash_completion in my .bashrc file. > > The file /etc/bash_completion exists. > > Cygcheck output attached. Please help. > Worked on it some more to try & debug this. Here is what I get after "set -x" in bash. [home$:503] cd /c/home/ab+ local cur 'IFS= ' i j k + _get_comp_words_by_ref cur + local exclude flag i OPTIND=1 + words=() + local cur cword words + upargs=() + upvars=() + local upargs upvars vcur vcword vprev vwords + getopts c:i:n:p:w: flag cur + [[ 1 -ge 1 ]] + case ${!OPTIND} in + vcur=cur + let 'OPTIND += 1' + [[ 1 -ge 2 ]] + __get_cword_at_cursor_by_ref '' words cword cur + words=() + local cword words + __reassemble_comp_words_by_ref '' words cword + local exclude i j ref + [[ -n '' ]] + eval cword=1 ++ cword=1 bash: exclude: unbound variable [home$:503] -- 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