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

 
 

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

Submitted by:  None
Submitted on:  Sat 04 Sep 2004 08:04:41 PM UTC  
 
Category: findSeverity: 3 - Normal
Item Group: NoneStatus: Invalid
Privacy: PublicAssigned to: None
Originator Name: Originator Email: -unavailable-
Open/Closed: ClosedRelease: None
Fixed Release: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project 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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Sun 05 Dec 2004 05:24:43 PM UTCjayStatusNone=>Invalid
Tue 21 Sep 2004 04:03:19 PM UTCrwpOpen/ClosedOpen=>Closed

Back to the top


Powered by Savane 3.1-cleanup1