Your message dated Sun, 23 Dec 2018 13:23:25 +0100 with message-id <[email protected]> and subject line Re: Bug#267658: findutils: '-o' operator is good but ... OP precedence ! has caused the Debian Bug report #267658, regarding Emphasize operator precedence for "a" over "-o" in manpage to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) -- 267658: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=267658 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: findutils Version: 4.1.20-4 Severity: important Here is simple examples to demonstrate brokenness of "find". I think you should fix this before sarge. This is such a basic functionality many people rely on. osamu@dambo:a$ ls -l total 4 drwxr-xr-x 2 osamu osamu 4096 2004-08-23 21:40 a -rw-r--r-- 1 osamu osamu 0 2004-08-23 21:41 ab -rw-r--r-- 1 osamu osamu 0 2004-08-23 21:42 b -rw-r--r-- 1 osamu osamu 0 2004-08-23 21:41 c -rw-r--r-- 1 osamu osamu 0 2004-08-23 21:41 d osamu@dambo:a$ find . -name a -o -name b -print ./b osamu@dambo:a$ find . -name a -print # works ./a osamu@dambo:a$ find . -name a -o -name b -o -name ab -print # funny ./ab osamu@dambo:a$ find . -type f \( -name a -o -name b -o -name ab \) -print # works ./ab ./b osamu@dambo:a$ find . \( -name a -o -name b -o -name ab \) -print # works ./a ./ab ./b osamu@dambo:a$ Clearly, match result before "-o" is discared, i.e., functioning as ",". Funny thing is within "( )", "-o" works. This seems to be a work around. Looks like some initialization problem. Please fix it or update man page or in README.Debian to indicate it is broken now and indicate work around. I wish you fix this ASAP. -- System Information: Debian Release: 3.1 APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Kernel: Linux 2.6.7-1-686 Locale: LANG=C, LC_CTYPE=en_US.ISO-8859-1 Versions of packages findutils depends on: ii libc6 2.3.2.ds1-16 GNU C Library: Shared libraries an -- no debconf information -- ~\^o^/~~~ ~\^.^/~~~ ~\^*^/~~~ ~\^_^/~~~ ~\^+^/~~~ ~\^:^/~~~ ~\^v^/~~~ +++++ Osamu Aoki <[email protected]> Brussels Belgium, GPG-key: A8061F32 .''`. Debian Reference: post-installation user's guide for non-developers : :' : http://qref.sf.net and http://people.debian.org/~osamu `. `' "Our Priorities are Our Users and Free Software" --- Social Contract
--- End Message ---
--- Begin Message ---Version: 4.6.0+git+20160126-1 On 2004-08-23 Osamu Aoki <[email protected]> wrote: > priority 267658 wishlist > retitle 267658 Emphasize operator precedence for "a" over "-o" in manpage > thanks > I was tired.... Sorry for the noise. The behavior is correct > -name a -o -name b -print > act as > -name a -o \( -name b -a -print \) > Come to think of it some reminder in man page for the operator > precedence will be nice. Then fool like me will not bother you. > Osamu Hello, this was fixed upstream https://lists.gnu.org/archive/html/bug-findutils/2016-01/msg00040.html Please note that -a when specified implicitly (for example by two tests appearing without an explicit operator between them) or explicitly has higher precedence than -o. This means that find . -name afile -o -name bfile -print will never print afile. cu Andreas -- `What a good friend you are to him, Dr. Maturin. His other friends are so grateful to you.' `I sew his ears on from time to time, sure'
--- End Message ---

