bug-findutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #14748] find -perm /zzz gives wrong result when zzz evaluates to an


From: Eric Blake
Subject: [bug #14748] find -perm /zzz gives wrong result when zzz evaluates to an all-zero mask
Date: Wed, 30 Nov 2005 06:39:03 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7

Follow-up Comment #3, bug #14748 (project findutils):

Think of the converse, using the same example as before.  What does "! -perm
/000" match?
"! -perm -+x" matches all files where any x bit is clear, or 000 and 100.
"! -perm /+x" matches all files where all x bits are clear, or 000.
Therefore,
"! -perm --x" matches all files where any bits in the mask are clear (there
are no bits), or nothing at all (good, that was the opposite of "-perm --x"
matching everything).
"! -perm /-x" matches all files where all bits in the mask are clear (there
are no bits), or nothing at all.

I still argue that -perm --x and -perm /-x should be identical.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=14748>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]