[BusyBox 0000866]: [PATCH] find returns 0 when no file is matched

Bernhard Fischer rep.nop at aon.at
Sun Jun 11 18:06:26 UTC 2006


Hi,

Any find guru, should this be closed?

PS: Too lazy to try to find a standard which may mandate the proper
behaviour for the belowmentioned case.
cheers,

On Sun, Jun 11, 2006 at 10:43:40AM -0700, bugs at busybox.net wrote:
>
>A NOTE has been added to this issue. 
>====================================================================== 
>http://busybox.net/bugs/view.php?id=866 
>====================================================================== 
>Reported By:                asierllano
>Assigned To:                BusyBox
>====================================================================== 
>Project:                    BusyBox
>Issue ID:                   866
>Category:                   Standards Compliance
>Reproducibility:            always
>Severity:                   minor
>Priority:                   normal
>Status:                     assigned
>====================================================================== 
>Date Submitted:             05-04-2006 23:32 PDT
>Last Modified:              06-11-2006 10:43 PDT
>====================================================================== 
>Summary:                    [PATCH] find returns 0 when no file is matched
>Description: 
>Execute:
>find -name idontexist
>echo $?
>
>You will see that in busybox it returns 0, but in findutils it returns 1.
>
>I've provided a simple patch that solves it easily.
>This bug happens in the SVN snapshot, but I haven't tried to apply this
>patch to it, but it may apply directly or near-directly.
>====================================================================== 
>
>---------------------------------------------------------------------- 
> bernhardf - 06-11-06 10:43  
>---------------------------------------------------------------------- 
>While i can see why returning a failure-code in this case would make sense,
>GNU find does return success too. 
>
>Issue History 
>Date Modified   Username       Field                    Change               
>====================================================================== 
>05-04-06 23:32  asierllano     New Issue                                    
>05-04-06 23:32  asierllano     Status                   new => assigned     
>05-04-06 23:32  asierllano     Assigned To               => BusyBox         
>05-04-06 23:32  asierllano     File Added: busybox-find-nomatch.patch           
>        
>06-11-06 10:43  bernhardf      Note Added: 0001416                          
>======================================================================



More information about the busybox mailing list