delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/04/21/11:51:17

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
From: "Dave Korn" <dave DOT korn AT artimi DOT com>
To: <skilover AT softhome DOT net>, <cygwin AT cygwin DOT com>
Subject: RE: findutils still broken
Date: Thu, 21 Apr 2005 16:49:57 +0100
MIME-Version: 1.0
In-reply-to: <courier.4267C34E.00005B06@softhome.net>
Message-ID: <SERRANOmBz2KyUgI2Yu00000095@SERRANO.CAM.ARTIMI.COM>
X-OriginalArrivalTime: 21 Apr 2005 15:49:46.0912 (UTC) FILETIME=[BE6BB200:01C54689]

----Original Message----
>From: skilover
>Sent: 21 April 2005 16:14

  Hi Chuck!  Hope you didn't mean to take this off-list deliberately,
because I've added the list back in.  Apologies in advance if you feel this
was a deeply personal communication I shouldn't have shared with the world!


> Dave Korn wrote:
>> ----Original Message----
>>> From: Chuck
>>> Sent: 19 April 2005 16:09

>>> Findutils is broken when it comes to using it on the /proc filesystem.
>>> The last version that worked is 4.1.7. Newer versions crash if you run
>>> "find /proc". Anyone care to tackle this?

>>   Cannot reproduce:
>> 
>> dk AT mace /proc> find /proc
>> /proc
>> /proc/loadavg
>> /proc/meminfo
>> /proc/registry
>> /proc/registry/HKEY_CLASSES_ROOT
>> /proc/registry/HKEY_CLASSES_ROOT/*
>> /proc/registry/HKEY_CLASSES_ROOT/*/OpenWithList
>> find: /proc/registry/HKEY_CLASSES_ROOT/*/OpenWithList: Is a directory
>> /proc/registry/HKEY_CLASSES_ROOT/*/shellex
>> find: /proc/registry/HKEY_CLASSES_ROOT/*/shellex: Is a directory
>> /proc/registry/HKEY_CLASSES_ROOT/*/InfoTip
>> /proc/registry/HKEY_CLASSES_ROOT/*/QuickTip
>> /proc/registry/HKEY_CLASSES_ROOT/*/AlwaysShowExt
>> /proc/registry/HKEY_CLASSES_ROOT/*/TileInfo
>> find: /proc/registry/HKEY_CLASSES_ROOT/*: Is a directory

> Check your exit code from find. Mine stops in exactly the same place with
> an exit code of 1.
> 
> Perhaps I shouldn't have said it "crashes", but it definitely does not
> traverse the entire registry.


  Ah.  No, you absolutely shouldn't say it "crashes", because it does not
"crash".  Misdescribing a bug is the slowest imaginable way of getting it
fixed!

  Particularly so in this case, because I don't see why find *shouldn't*
return an exit code of 1 when it's had all those errors.  Have you read "man
find"?


EXIT STATUS
       find exits with status 0 if  all  files  are  processed
successfully,
       greater than 0 if errors occur.


  Presumably the reason that this behaviour is new is that there used to be
a bug that stopped it even attempting to recurse those dirs, because nothing
with '*' in it could ever be a valid filename.


    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


--
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/

- Raw text -


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