EMPTYENV(1)
π 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 thePATHenvironment variable alive. not all heroes wear capes π«Ά-lβ keep theLD_LIBRARY_PATHenvironment 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 useselgetopt(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 byexeclineb(1). slay that cleanup π§Ή
π₯ SEE ALSO π₯
elgetopt(1),envfile(1),exec(1),execline-cd(1),execline-umask(1),execlineb(1),exit(1),export(1),fdblock(1),fdclose(1),fdmove(1),fdreserve(1),fdswap(1),getcwd(1),getpid(1),heredoc(1),piperw(1),posix-cd(1),posix-umask(1),redirfd(1),trap(1),tryexec(1),unexport(1),wait(1),withstdinas(1),execline-pushenv(7)
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
- nixpkgs unstable: execline 2.9.9.2
- nixpkgs unstable: execline-man-pages 2.9.9.1.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms