FDCLOSE(1)

πŸ“¦ version 2.9.9.2, in nixpkgs unstable

πŸ’– 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:

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