From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16006 invoked by alias); 18 Sep 2014 00:03:01 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 15992 invoked by uid 89); 18 Sep 2014 00:03:00 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail.spocom.com Received: from mail.spocom.com (HELO mail.spocom.com) (206.63.224.240) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 18 Sep 2014 00:02:59 +0000 Received: from localhost (spkdsl-116-45.cet.com [206.63.116.45]) by mail.spocom.com with SMTP; Wed, 17 Sep 2014 17:02:13 -0700 Date: Thu, 18 Sep 2014 00:29:00 -0000 From: Gary Johnson To: cygwin@cygwin.com Subject: Re: No file name completion for file names start with underscore Message-ID: <20140918000242.GA17489@phoenix> Mail-Followup-To: cygwin@cygwin.com References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-IsSubscribed: yes X-SW-Source: 2014-09/txt/msg00280.txt.bz2 On 2014-09-17, Paul.Domaskis wrote: > writes: > > writes: > >> I'm using the following 64-bit packages: > >> > >> cygwin 1.7.28-2 bash-completion 1.3-1 > >> > >> If I am in a folder that contains file _vimrc and directory > >> _vimfiles, filename completion doesn't respond. I type "ls _" or > >> "ls _v" and press tab -- nothing happens. I can't really do > >> anything about it because it took months to approve the use of > >> cygwin install CDs made near the beginning of the year, but I was > >> wondering the problem is reproducible by others? > > > > Oops, my bad. The phrase "file _vimrc and directory _vimfiles" should > > read "files _vimrc and _viminfo". The directory is actually > > "vimfiles" and has no underscore. > > I'm not sure if this is a false alarm, but I have another error in my > original post, due to my haste in cobbling together an arbitrary > example. In actuality, completion does not fail for "ls _v". It > fails for "find _v". But it works for other commands like ls and > find. Again, lack of completion fails only when trying to specify > filenames starting with underscore as arguments to the find command. File names or directory names? The path argument to find must be a directory, so the bash-completion function for find completes only directory names when it is expecting the path argument. Bash alone, without the bash-completion package, doesn't know anything about find's arguments and will complete file names, too. The ls command, on the other hand, can be used to list files or directories so the ls bash-completion function expands both. Regards, Gary -- 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