* find bug
@ 1995-06-15 4:00 PAUL D. CHAPIN
1995-06-15 4:00 ` Daniel S. Riley
0 siblings, 1 reply; 2+ messages in thread
From: PAUL D. CHAPIN @ 1995-06-15 4:00 UTC (permalink / raw)
Is it my imagination or does DEC Unix 3.2 have a bug in the find command.
In particular, the command "find /usr/fac/pdchapin -name test1 -o -name
test2 -print" only finds the second file.
--
Paul Chapin
A) Unix Systems Manager
B) User Services Coordinator
C) Information Coordinator
D) All of the above
Amherst College
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: find bug
1995-06-15 4:00 find bug PAUL D. CHAPIN
@ 1995-06-15 4:00 ` Daniel S. Riley
0 siblings, 0 replies; 2+ messages in thread
From: Daniel S. Riley @ 1995-06-15 4:00 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1995-06-15 4:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-06-15 4:00 find bug PAUL D. CHAPIN
1995-06-15 4:00 ` Daniel S. Riley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox