HEREDOC(1)
πΈ 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 ofheredoc. 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
- 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