delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:date:from:to:subject:message-id:references | |
:mime-version:content-type:in-reply-to; q=dns; s=default; b=tuvf | |
9C6mx9QbQnt4p9+XHh/chYiwa/5UB2+d+dX4MM/IKiKgNz7rlLGYt2N44hf06EI6 | |
IgK132KKW3OQE4x852FKHFpJs2o1PlCL1dxagINByeXh5rIYu68yCo8EX4fWiK3I | |
Kl5KcxqozmQx7O699tgS+JqBjwNvcc5Edgn3zvc= | |
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:date:from:to:subject:message-id:references | |
:mime-version:content-type:in-reply-to; s=default; bh=rhYYtSFhcl | |
3er/F4TcBEAo+hSIs=; b=BJzrE2grc0iKW2VWJLFJsvKwCt/BNfnK2wRH0zTgMH | |
iaFo51uYeWw5iYAMWryOURKkLhgG8U2xRIdpy2lVfkm0kQnBKkJM73u0lWBlgi2v | |
1pnaTYZk6U2jl4l1HomW0uRR9ij3L3XayzLiBh+e4M7w8KWnBxlRNjXVpn2477Jb | |
8= | |
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 |
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 |
Date: | Wed, 17 Sep 2014 17:02:42 -0700 |
From: | Gary Johnson <garyjohn AT spocom DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: No file name completion for file names start with underscore |
Message-ID: | <20140918000242.GA17489@phoenix> |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <loom DOT 20140918T010225-301 AT post DOT gmane DOT org> <loom DOT 20140918T011028-898 AT post DOT gmane DOT org> <loom DOT 20140918T012259-677 AT post DOT gmane DOT org> |
MIME-Version: | 1.0 |
In-Reply-To: | <loom.20140918T012259-677@post.gmane.org> |
User-Agent: | Mutt/1.5.20 (2009-06-14) |
X-IsSubscribed: | yes |
On 2014-09-17, Paul.Domaskis wrote: > <Paul.Domaskis> writes: > ><Paul.Domaskis> 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |