FDCLOSE(1)
π fdclose(1) β your General Commands Manual bestie is here π
β¨ NAME β¨
fdclose β close a given file descriptor, then execute a program π
πΈ SYNOPSIS πΈ
fdclose fd prog...
π¦ DESCRIPTION π¦
okay so picture this: fdclose closes the file descriptor number fd, then it exec(3)s into prog with its arguments. that's the whole plot, no cap β¨
and bestie, fdclose n prog... is roughly equivalent to sh -c 'exec prog... n<&-' β literally same energy π«Ά
π SEE ALSO π
go give these iconique pals a read:
emptyenv(1)envfile(1)exec(1)execline-cd(1)execline-umask(1)exit(1)export(1)fdblock(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)exec(3)
This man page is a port of the authoritative documentation at: https://skarnet.org/software/execline/fdclose.html π¦
π AUTHORS π
- Laurent Bercot π
Alexis <flexibeast@gmail.com>(man page port) π
with love from Debian, dated February 14, 2021, signed FDCLOSE(1) π β¨
π¦ 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