delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/09/18/18:20:18

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=KuHq
//gYEfL7woRim293R8/uSVvCEC181c7ynjf+bLuXpSFKp28bukL/Z2q/xyOAR1Rn
mfdtyoYzYm1k9vrxdq5diIHCkA74IVw52qLKBhb7y7Mp6LdUQb4+OIRJHjRzRH5r
LaZfU2u3KE/GW6jh+h5H3P//eMayPq9VT9SKu9Y=
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=AXe67w0jYa
CCNK+hGDdSlOnT/Ro=; b=tH8WARKTF4plzoWR85AbRamS5CJ+Jd2bgvseilW9AG
jdDMWcn2meCktRJ9P3PzUG2mBdnEfDyg/g/pEsero01XCDoQWw7QDJhzApCONAKW
wAVF7x9iXzqI0bGEkGjZr7fQRp50z4clRynS7VboOY68k/O59IHuH7ob8+zT/T/p
w=
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=-2.0 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mail.spocom.com
Date: Thu, 18 Sep 2014 15:19:43 -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: <20140918221943.GA22077@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> <20140918000242 DOT GA17489 AT phoenix> <CACUHbYP+hmbvkVK_dO_C6H3QMLO3zGH+sK2fSovHox3XLUsWUQ AT mail DOT gmail DOT com> <lvf9re$l0j$1 AT ger DOT gmane DOT org> <loom DOT 20140918T223627-193 AT post DOT gmane DOT org>
MIME-Version: 1.0
In-Reply-To: <loom.20140918T223627-193@post.gmane.org>
User-Agent: Mutt/1.5.20 (2009-06-14)
X-IsSubscribed: yes

On 2014-09-18, Paul.Domaskis wrote:
> Andrew DeFaria <Andrew <at> DeFaria.com> writes:
> >On 9/18/2014 11:42 AM, David Boyce wrote:
> >>> 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.
> > 
> > Or just "find /etc/passwd". (-print has been the default for
> > decades...  The man page it's the default but you should proob)
> 
> Maybe things have changed.  I think Gary Johnson is right.

David is right:  find does accept a file name as the path argument.
I didn't know that.  (Obviously.)  The man page doesn't really say,
but all references to the path argument suggest that it contains a
directory or list of directories.

Nevertheless, the completion function for find (_find(), in
/etc/bash_completion.d/findutils or
/usr/share/bash-completion/completions/find) does expect that
argument to be a directory and expands only directories.

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019