POSIX-UMASK(1)

πŸ“¦ version 2.9.9.2, in nixpkgs unstable

✨ POSIX-UMASK(1) β€” posix-umask, but make it bestie ✨

okay so this is the General Commands Manual page for posix-umask β€” yes, that POSIX-UMASK(1) girlie πŸ’….

πŸ’– NAME πŸ’–

posix-umask β€” changes the file mode creation mask, then executes a program. no cap, that's the whole vibe.

✨ SYNOPSIS ✨

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

πŸ¦‹ DESCRIPTION πŸ¦‹

When you call posix-umask with no argument, it prints the value of the file mode creation mask of the invoking process, then exits 0. that's it, that's the behavior πŸ’–.

When you give it a mask argument, posix-umask changes its file mode creation mask. then, if prog... is not empty, it exec(3)s into it. main character energy: it doesn't stick around, it becomes the program 🫢.

posix-umask interprets mask as specified by the POSIX specification for a β€˜umask’ external utility [1].

When execline has been configured with the --enable-pedantic-posix option, the umask command is a symbolic link to it. so scripts calling umask will use posix-umask. when this configuration option has not been given, umask is a symbolic link to execline-umask(1). lowkey important 😭.

posix-umask fully conforms to the POSIX specification [1]. when prog... is not empty, the behaviour of a β€˜umask’ utility is not specified by POSIX, so posix-umask extends the spec to be actually useful and usable in an execline program with the same interface as the regular execline β€˜umask’ command. periodt.

🫢 okay but listen: nobody ever executes or needs the external version (i.e. not a shell builtin) of the POSIX β€˜umask’ command. compared to execline's regular umask binary, execline-umask(1), posix-umask is uselessly bloated and slow. the only reason it exists is that some distributions refuse to package execline correctly unless it is strictly POSIX-compliant; the --enable-pedantic-posix configure option is there to satisfy their requirements. iconic packaging drama, honestly πŸ’€.

🌈 SEE ALSO 🌈

also, this man page is ported from the authoritative documentation at: https://skarnet.org/software/execline/posix-umask.html πŸ’œ

πŸŽ€ AUTHORS πŸŽ€

  • Laurent Bercot
  • Alexis <flexibeast@gmail.com> (man page port)

later bestie β€” this page is from Debian, dated February 14, 2021 πŸ’–βœ¨

πŸ“¦ where this page comes from