From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,5be5c1e9c007c076 X-Google-Attributes: gidfee84,public From: dsr@lns598.lns.cornell.edu (Daniel S. Riley) Subject: Re: find bug Date: 1995/06/15 Message-ID: #1/1 X-Deja-AN: 104453642 references: <3rpviv$iaf@amhux3.amherst.edu> organization: Wilson Lab, Cornell U., Ithaca, NY 14853 newsgroups: comp.unix.osf.osf1 In article <3rpviv$iaf@amhux3.amherst.edu>, pdchapin@news.amherst.edu (PAUL D. CHAPIN) writes: pdchapin> Is it my imagination or does DEC Unix 3.2 have a bug in the pdchapin> find command. In particular, the command "find pdchapin> /usr/fac/pdchapin -name test1 -o -name test2 -print" only pdchapin> finds the second file. I believe that is the correct behavior -- and has precedence over or, so your expression is equivalent to find /usr/fac/pdchapin -name test1 -o \( -name test2 -print \) The second term is never evaluated when the first is true, so -print is never evaluated when "-name test1" is true. To get the behavior you want, do find /usr/fac/pdchapin \( -name test1 -o -name test2 \) -print -- Dan Riley Internet: dsr@lns598.lns.cornell.edu Wilson Lab, Cornell University HEPNET/SPAN: lns598::dsr (44630::dsr) "Distance means nothing/To me." -Kate Bush