Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <3F0AF79A.2030207@alltel.net>
Date: Tue, 08 Jul 2003 11:55:54 -0500
From: Ken Dibble <kdibble@alltel.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: find -exec oddity
References: <5.2.1.1.2.20030707171122.0206bd98@pop.sonic.net> <3F0AB445.7090105@alltel.net> <3F0AB9FD.236D42EE@dessent.net>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit



Brian Dessent wrote:

>Ken Dibble wrote:
>
>  
>
>>As you can see, there are indeed some directories, but a whole bunch of
>>files
>>which shouldn't be there as well.
>>
>>The big question now is why are some files considered directories?
>>    
>>
>
>I don't see the confusion here.  You're feeding to "ls -l" the
>parameters "./" , "./files to backup.txt" , and "./idiot.txt" which are
>the results of find.  "./" is a directory, so ls prints its contents not
>its name, that's why you see listings for all the files in the current
>directory, followed by listings for "files to backup.txt" and
>"idiot.txt".  When you add "-d" to ls, you get just three lines of
>output, corresponding to the three things that find found.  How is this
>confusing?
>
>
>  
>
Brian,

Like I said, I'm an idiot.
It did not occur to me that "./" was being passed to "ls" and that ls 
was just doing
what it was told and listing the entire directory.

Thanks for helping me out.

Regards,
Ken


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

