EMPTYENV(1)

πŸ“¦ version 2.9.9.2, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so bestie, welcome to emptyenv β€” it's from the General Commands Manual, section 1, and honestly? iconic behaviour. its whole job is: empty out your current environment (or just tidy it up real nice πŸŽ€), and then run a program for you. like a little pre-game ritual before the main character steps on stage ✨


🌸 SYNOPSIS 🌸

emptyenv [-p] [-l] prog...
emptyenv -c prog...
emptyenv [-o] [-P] prog...

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea β˜• β€” by default, emptyenv unsets, like, all your environment variables, and then exec(3)s into prog with whatever arguments you gave it. periodt. that's the whole vibe.

the options are just you picking and choosing which environment variables get to survive the purge πŸ’…


✨ OPTIONS ✨

  • -p β€” keep the PATH environment variable alive. not all heroes wear capes 🫢
  • -l β€” keep the LD_LIBRARY_PATH environment variable. let it live its truth 🌈
  • -c β€” clean up mode! do not empty the environment, bestie, we're not doing all that. instead it removes every variable used internally by the execline programs, so nothing interferes with β€” or leaks info to 😭 β€” external programs. no cap, it's giving hygiene.
  • -o β€” pop (cf. execline-pushenv(7)) environment variables starting with β€˜ELGETOPT_’. you might want to do this before executing a final program from a script that uses elgetopt(1). lowkey essential.
  • -P β€” pop (cf. execline-pushenv(7)) environment variables starting with β€˜#’, β€˜0’ to β€˜9’, and β€˜EXECLINE_’. you might want to do this before executing a final program from a script launched by execlineb(1). slay that cleanup 🧹

πŸ”₯ SEE ALSO πŸ”₯

also, for the record 🫑 this man page is ported from the authoritative documentation at: https://skarnet.org/software/execline/emptyenv.html


πŸ‘‘ AUTHORS πŸ‘‘

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

okay bestie that's the whole page πŸ’œ header said EMPTYENV(1) and the footer was all Debian, dated February 14, 2021 β€” and that's the source/version + date sign-off, so we're done here. mwah πŸ’‹πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from