HEREDOC(1)

NAME
heredoc - run a command with a certain string fed to a file descriptor

SYNOPSIS
heredoc [-d] fd string prog...

DESCRIPTION
heredoc exec(3) s into prog... with string available on the fd file descriptor.

string must not contain a null character.

heredoc is meant to be used in place of the shell ‘<<’ construct, which includes here-documents into scripts.

OPTIONS

-d  Run the process feeding string to fd as a grandchild of heredoc. This is meant to prevent a zombie from hanging around if prog... has read string and fails to wait for its children.

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)