SETSTATE(1)

πŸ“¦ version 2024.12.07, in nixpkgs unstable

πŸ‘‘ The setstate program πŸ‘‘

Hiii bestie, welcome to the manual for setstate β€” aka The setstate program β€” and it’s giving tiny-but-fierce. πŸ’… It changes its process state according to options and certain environment variables, then runs the given command. Periodt. ✨

🌸 SYNOPSIS 🌸

setstate -options command [arg ...]

πŸ¦‹ DESCRIPTION πŸ¦‹

setstate changes its process state according to options and certain environment variables, and runs the given command. No cap. 🫢

⚠️ WARNING: options must be a single argument. Like, one argument, bestie β€” do not split it up. The leading - is not required. πŸ’€

The options are listed below, and they are obeyed in this order β€” top to bottom, fr fr. ⭐

πŸ’– OPTIONS (in the exact order they’re obeyed) πŸ’–

  • r β€” chdir and chroot to $ROOT.
  • l β€” become a process group leader (new in version 2001.06.08).
  • L β€” become a non-process group leader (new in version 2001.06.08).
  • s β€” become a session leader (new in version 2001.06.08).
  • f β€” set the foreground process group of fd 0 to this process’s group (new in version 2001.06.08).
  • o β€” fchown fd 0 to $UID (new in version 2001.06.08).
  • g β€” setgid to $GID.
  • G β€” setgroups to $GROUPS, a list of group IDs with each preceded by a space (including the first).
  • u β€” setuid to $UID.
  • h β€” chdir to $HOME.
🚨 It is an error if an option is specified and any of the environment variables it uses is not set. So if the env var is missing, that option is a no-go. πŸ’€

That’s the whole page, bestie β€” from the The setstate program manual. There’s no version or date stamp on this copy, so we’re not inventing one. πŸ«ΆπŸ’–

πŸ“¦ where this page comes from