Bob Proulx wrote:
> Eugen Dedu wrote:
> > chmod -X filename
>
>   chmod -R a+X somedirectory

I realized I should have provided an example specifically for the '-'
operation instead of the '+' operation.

  $ touch foo
  $ chmod u+x foo
  $ ls -ldog foo
  -rwxrw-r-- 1 0 2009-01-14 10:57 foo
  $ chmod a-X foo
  $ ls -ldog foo
  -rw-rw-r-- 1 0 2009-01-14 10:57 foo

Because the file was executable by the user it meets the criteria of
already having the execute bit set by any of "user", "group", or
"other", in this case executable by user, and therefore acts on the
file.

For consistency -X behaves as other minus actions do but really X is
useful and designed to be used with the +X plus action.

Bob



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to