bugfindutils - Bugs: bug #10269, Find . -mode +w # would be a...

 
 

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

Submitter:  None
Submitted:  Sat 04 Sep 2004 08:04:41 PM UTC
   
 
Category:  find Severity:  3 - Normal
Item Group:  None Status:  Invalid
Privacy:  Public Assigned to:  None
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  Closed Release:  None
Fixed Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 06 Sep 2004 01:50:55 AM UTC, comment #1: 

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 <bob@proulx.com>

Bob Proulx <rwp>
Group Member
Sat 04 Sep 2004 08:04:41 PM UTC, 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


Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follow 2 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2004-12-05 jay StatusNone Invalid
2004-09-21 rwp Open/ClosedOpen Closed

Back to the top

Powered by Savane 3.13-4448.
Corresponding source code