X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=3.6 required=5.0	tests=AWL,BAYES_00,BOTNET,RCVD_IN_DNSWL_NONE,TW_IW
X-Spam-Check-By: sourceware.org
Message-id: <4F3C9F02.3040801@cygwin.com>
Date: Thu, 16 Feb 2012 01:15:30 -0500
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh@cygwin.com>
Reply-to: cygwin@cygwin.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0) Gecko/20111222 Thunderbird/9.0.1
MIME-version: 1.0
To: cygwin@cygwin.com
Subject: Re: <TAB> cannot auto complete
References: <CALX7UOhQ7af0jHMX5BJCi0sU-++CAWtx5TAhts4p6keqnuyF7w@mail.gmail.com>
In-reply-to: <CALX7UOhQ7af0jHMX5BJCi0sU-++CAWtx5TAhts4p6keqnuyF7w@mail.gmail.com>
Content-type: text/plain; charset=ISO-8859-1; format=flowed
Content-transfer-encoding: 7bit
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On 2/16/2012 1:04 AM, Pan ruochen wrote:
> Hi,
>
> I found that sometimes<TAB>  key wouldn't do auto completion.
> My case is:
> there is 3 files in the directory: a.sh g.txt g1.txt
>
> And I type: sh a.sh g
> and then I would like to use bash completion to speed up typing.
> But nothing happened when I type<TAB>.
> It seemed that bash could not complete `g' to `g.txt' at all.
>
> The cygiwn version is:
> CYGWIN_NT-6.1-WOW64 3CNL12311 1.7.10(0.259/5/3) 2012-02-05 12:36 i686 Cygwin
>
> I never came across this error before. I don't know it is a new bug or not.
> And I attached the directory package. Hope it locate the cause of the problem.

There's nothing new here.  bash will complete any unambiguous file name.
In your case, you don't have an unambiguous file name that starts with
'g'.  You need to type either 'g.' or 'g1' to get bash to complete the
rest.  If you're ever not sure why bash hasn't done what you expect, you can 
always hit <TAB> again to see what possible completions exist.  bash
will list them.

-- 
Larry

_____________________________________________________________________

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

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

