bug-findutils
[Top][All Lists]
Advanced

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

[bugs #10269] Find . -mode +w # would be a nice syntax


From: James Youngman
Subject: [bugs #10269] Find . -mode +w # would be a nice syntax
Date: Sun, 05 Dec 2004 12:44:21 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20041007 Debian/1.7.3-5

This mail is an automated notification from the bugs tracker
 of the project: findutils.

/**************************************************************************/
[bugs #10269] Latest Modifications:

Changes by: 
                James Youngman <address@hidden>
'Date: 
                Sun 12/05/04 at 17:24 (GMT)

            What     | Removed                   | Added
---------------------------------------------------------------------------
          Resolution | None                      | Invalid







/**************************************************************************/
[bugs #10269] Full Item Snapshot:

URL: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=10269>
Project: findutils
Submitted by: 0
On: Sat 09/04/04 at 20:04

Category:  find
Severity:  5 - Average
Item Group:  None
Resolution:  Invalid
Privacy:  Public
Assigned to:  None
Originator Name:  
Originator Email:  
Status:  Closed
Release:  None
Fixed Release:  None


Summary:  Find .  -mode +w  # would be a nice syntax

Original Submission:   #find . -mode +w
find: invalid predicate `-mode'
 #find . -perm +w
find: invalid mode `+w'
 # 
 ## find accepts, of course, the following:
 #find . -perm +222



Follow-up Comments
------------------


-------------------------------------------------------
Date: Mon 09/06/04 at 01:50         By: Bob Proulx <rwp>
I think this is just a misunderstanding of the way find's options work.  find's 
-perm option takes '+' as a option already.  The documentation says the 
following:

  If MODE starts with `+', true if _any_ of the permissions set  in MODE are 
set for the file; permissions not set in MODE are ignored.

Which means that the perm you are asking for is 'w'.  What is a 'w' perm?

What you really want to do is to use u+w or a+w or whatever.  That turns this 
into the following.

  find . -perm +u+w -print

That works fine.
Bob Proulx <address@hidden>













For detailed info, follow this link:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=10269>

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







reply via email to

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