[Toybox] this week in weird coreutils stuff: chmod

Rob Landley rob at landley.net
Wed May 29 09:40:12 PDT 2024


On 5/28/24 08:00, enh via Toybox wrote:
> apparently chmod allows something like
> 
>   chmod u+rwX-s,g+rX-ws,o+rX-wt
> 
> as a (far less readable!) synonym for
> 
>   chmod u+rwX,u-s,g+rX,g-ws,o+rX,o-wt
> 
> i'm told that toybox silently accepts the former too, but does not
> interpret it as if it means the latter?

Try commit a2c4a53e155c.

(Needed to zero a variable inside the loop rather than just once at the
beginning. Random cleanups while I was there, plus tests.)

Rob


More information about the Toybox mailing list