public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Gary Johnson <garyjohn@spocom.com>
To: cygwin@cygwin.com
Subject: Re: No file name completion for file names start with underscore
Date: Thu, 18 Sep 2014 00:29:00 -0000	[thread overview]
Message-ID: <20140918000242.GA17489@phoenix> (raw)
In-Reply-To: <loom.20140918T012259-677@post.gmane.org>

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

  reply	other threads:[~2014-09-18  0:03 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-17 23:13 Paul.Domaskis
2014-09-17 23:30 ` Paul.Domaskis
2014-09-18  0:03   ` Paul.Domaskis
2014-09-18  0:29     ` Gary Johnson [this message]
2014-09-18 18:51       ` David Boyce
2014-09-18 20:54         ` Andrew DeFaria
2014-09-18 21:32           ` Paul.Domaskis
2014-09-18 22:55             ` Gary Johnson
2014-09-20  3:02               ` Paul.Domaskis
2014-09-20 11:14                 ` Andrey Repin
2014-09-24 23:03                   ` Paul.Domaskis
2014-09-25  0:09                     ` Eliot Moss
2014-09-25 22:13                       ` Paul.Domaskis
2014-09-26  7:30                         ` Eliot Moss

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140918000242.GA17489@phoenix \
    --to=garyjohn@spocom.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).