Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: dsr@lns598.lns.cornell.edu (Daniel S. Riley)
Subject: Re: find bug
Date: 1995/06/15	[thread overview]
Message-ID: <DSR.95Jun15185930@lns100.lns.cornell.edu> (raw)
In-Reply-To: 3rpviv$iaf@amhux3.amherst.edu


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



      reply	other threads:[~1995-06-15  4:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-06-15  4:00 find bug PAUL D. CHAPIN
1995-06-15  4:00 ` Daniel S. Riley [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox