HEREDOC(1)

πŸ“¦ version 2.9.9.2, in nixpkgs unstable

🌸 HEREDOC(1) 🌸

okay so welcome to the heredoc man page bestie, this is the General Commands Manual entry and it's literally the cutest little glue tool in execline, i promise 🫢

✨ NAME ✨

heredoc β€” run a command with a certain string fed to a file descriptor πŸ’…

✨ SYNOPSIS ✨

heredoc [-d] fd string prog...

✨ DESCRIPTION ✨

so here's the vibe: heredoc exec(3)s into prog..., and it makes string available on the fd file descriptor. that's it. that's the whole thing. main character energy honestly πŸ‘‘

one very important thing tho β€” string must not contain a null character πŸ’€ like, for real, don't do it.

heredoc is meant to be used in place of the shell << construct, which includes here-documents into scripts. so if you've been out here writing << in your scripts and feeling some type of way about it, this is your girlie 🌈

✨ OPTIONS ✨

  • -d β€” Run the process feeding string to fd as a grandchild of heredoc. the whole point of this is to prevent a zombie from hanging around if prog... has read string and fails to wait for its children πŸ§Ÿβ€β™€οΈ no cap, zombies are not the vibe.

✨ SEE ALSO ✨

emptyenv(1), envfile(1), exec(1), execline-cd(1), execline-umask(1), exit(1), export(1), fdblock(1), fdclose(1), fdmove(1), fdreserve(1), fdswap(1), getcwd(1), getpid(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 ported from the authoritative documentation at: https://skarnet.org/software/execline/heredoc.html πŸ¦‹

✨ AUTHORS ✨

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

and that's the whole page bestie!! this Debian build is dated February 14, 2011 (yes, valentine's day, iconic πŸ’–) β€” go forth and feed those strings to those file descriptors, iykyk πŸŽ€

πŸ“¦ where this page comes from