execline
Software
skarnet.org

The posix-umask program

posix-umask changes its file mode creation mask, then executes a program.

Interface

     posix-umask [ -S ] [ mask ] [ prog... ]

When called with no argument, posix-umask prints the value of the file mode creation mask of the invoking process, then exits 0.

When called with a mask argument, posix-umask changes its file mode creation mask; then, if prog... is not empty, it execs into it.

posix-umask interprets mask as specified by the POSIX specification for a umask external utility.

Notes