From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12469 invoked by alias); 18 Sep 2014 18:43:08 -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 12455 invoked by uid 89); 18 Sep 2014 18:43:07 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-pd0-f174.google.com Received: from mail-pd0-f174.google.com (HELO mail-pd0-f174.google.com) (209.85.192.174) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Thu, 18 Sep 2014 18:43:05 +0000 Received: by mail-pd0-f174.google.com with SMTP id v10so1960809pde.33 for ; Thu, 18 Sep 2014 11:43:03 -0700 (PDT) X-Received: by 10.68.200.74 with SMTP id jq10mr8646659pbc.144.1411065783777; Thu, 18 Sep 2014 11:43:03 -0700 (PDT) MIME-Version: 1.0 Received: by 10.70.42.177 with HTTP; Thu, 18 Sep 2014 11:42:43 -0700 (PDT) In-Reply-To: <20140918000242.GA17489@phoenix> References: <20140918000242.GA17489@phoenix> From: David Boyce Date: Thu, 18 Sep 2014 18:51:00 -0000 Message-ID: Subject: Re: No file name completion for file names start with underscore To: cygwin@cygwin.com Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2014-09/txt/msg00291.txt.bz2 > The path argument to find must be a directory. Sorry, but I can't let this go by. The statement above is incorrect, as a simple test like "find /etc/passwd -print" would show. David On Wed, Sep 17, 2014 at 5:02 PM, Gary Johnson wrote: > 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 > -- 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