delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/02/16/01:16:23

X-Recipient: archive-cygwin AT delorie DOT 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 AT cygwin DOT com>
Reply-to: cygwin AT cygwin DOT 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 AT cygwin DOT com
Subject: Re: <TAB> cannot auto complete
References: <CALX7UOhQ7af0jHMX5BJCi0sU-++CAWtx5TAhts4p6keqnuyF7w AT mail DOT gmail DOT com>
In-reply-to: <CALX7UOhQ7af0jHMX5BJCi0sU-++CAWtx5TAhts4p6keqnuyF7w@mail.gmail.com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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 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

- Raw text -


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