<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>7920</bug_id>
          
          <creation_ts>2005-09-11 02:18:48 +0400</creation_ts>
          <short_desc>find . -name &quot;$mask1&quot; -or -name &quot;$mask2&quot; works incorrectly with -print, -printf and -print0</short_desc>
          <delta_ts>2007-04-21 16:30:19 +0400</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>findutils</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="evseev">evseev</reporter>
          <assigned_to name="placeholder@altlinux.org">placeholder</assigned_to>
          <cc>glebfm</cc>
    
    <cc>ldv</cc>
    
    <cc>placeholder</cc>
    
    <cc>vt</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>30361</commentid>
    <comment_count>0</comment_count>
    <who name="evseev">evseev</who>
    <bug_when>2005-09-11 02:18:48 +0400</bug_when>
    <thetext>find utility ignores complex search expressions when &apos;-print*&apos; is used.
Steps to Reproduce:
1. Lookup any source directory with many *.c and *.h files.
2. find /path/to/source -name &quot;*.h&quot; -or -name &quot;*.c&quot; | grep &apos;\.c$&apos;
3. find /path/to/source -name &quot;*.h&quot; -or -name &quot;*.c&quot; -print | grep &apos;\.c$&apos;
Actual Results:  
Files with second wildcard are ignored, only first wildcard is handled 
correctly.

Expected Results:  
All wildcards should be handled.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30384</commentid>
    <comment_count>1</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2005-09-11 21:58:36 +0400</bug_when>
    <thetext>The 3rd case is equivalent of
find /path/to/source -name &quot;*.h&quot; -or &quot;(&quot; -name &quot;*.c&quot; -print &quot;)&quot;
you probably want to use
find /path/to/source &quot;(&quot; -name &quot;*.h&quot; -or -name &quot;*.c&quot; &quot;)&quot; -print</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>