Paul Eggert wrote: > On 03/05/2012 02:27 PM, Bruno Haible wrote: > >> Then how about using "==" or ":=" to designate the assignment? > > That's too fancy. Plain '=' would be better. > > We can also support notations like '+700' and '-77' to > OR-in or AND-out arbitrary masks. This would be > a clear and straightforward extension to the > existing symbolic modes. > > Something like the attached patches for gnulib and > coreutils, perhaps? If this looks OK > I'll add test cases.
I like it. Thanks! I noted one typo: ... > diff --git a/doc/perm.texi b/doc/perm.texi ... > +@node Operator Numeric Modes > +@section Operator Numeric Modes > + > +An operator numeric mode is a numeric mode that is prefixed by a > +@samp{-}, @samp{+}, or @samp{=} operator, which has the same > +interpretation as in symbolic modes. For example, @samp{+440} enables > +read permission for the file's owner and group, @samp{-1} disables > +execute permission for other users, and @samp{=600} clears all > +permissions that it enables read-write permissions for the file's s/that/then/ > +owner. Operator numeric modes can be combined with symbolic modes by > +separating them with a comma; for example, @samp{=0,u+r} clears all > +permissions except for enabling read permission for the file's owner.