This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: <TAB> cannot auto complete

On 2/16/2012 1:04 AM, Pan ruochen wrote:

I found that sometimes<TAB>  key wouldn't do auto completion.
My case is:
there is 3 files in the directory: g.txt g1.txt

And I type: 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.



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:
Unsubscribe info:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]