www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/07/09/15:16:29

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 <news AT biyani DOT org>
Subject: Re: Tab Completion Problem
Date: Fri, 09 Jul 2010 14:16:04 -0500
Lines: 54
Message-ID: <i17shk$h2p$1@dough.gmane.org>
References: <i14m57$cqg$1 AT dough DOT gmane DOT org>
Mime-Version: 1.0
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: <i14m57$cqg$1@dough.gmane.org>
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 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019