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: 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: cannot auto complete References: In-reply-to: Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 2/16/2012 1:04 AM, Pan ruochen wrote: > Hi, > > I found that sometimes 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. > 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 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