Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: zsh tips for "UNIX Power Tools"



"Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx> writes:

[...]

> On Mar 3, 11:05pm, Bruce Stephens wrote:
> } Subject: Re: zsh tips for "UNIX Power Tools"
> }
> } >   chmod 755 **/*(/)
> } >   chmod 644 **/*(.)
> } 
> } What's wrong with
> } 
> }         chmod -R go+rX .
> 
> It changes the group and other execute permissions of plain files if the
> user execute permission was already set.  That's obviously not what 644
> accomplishes on plain files in Thomas's example.

Sure, the two aren't identical.  I suspect the latter is more often
what people want---it's usually what I want, anyway.

> Besides, not everyone has GNU chmod.

I think the behaviour is reasonably common.  Solaris 2.5.1 chmod also
works (although I don't see the +X behaviour in the manpage).



Messages sorted by: Reverse Date, Date, Thread, Author