my gnu bash scripts GNU bash, version 5.1.0(1)-release (x86_64-apple-darwin19.6.0) on macos hang when they contain a heredoc with greater than 512 characters, e.g. the USAGE heredoc below works unless I add 1 more character to it
cat <<'USAGE'
--all List all tasks, TASK_IDs will be ignored
--name NAME Only list tasks with specified NAME
--logs list log messages
--pending Only list tasks that have not been scheduled
--active same as --pending
--scheduled Only List tasks that have been scheduled, whether running or finished
--running Only List tasks that are currently executing / running
--finished Only List tasks that have been run, i.e., have finished
12345678901234567890
USAGE
note: there are no variable expansions, quotes, etc. just literal text.
If i break all of the text into multiple heredocs they all work ... but if i combine them in anyway to create a heredoc with >512 characters bash hangs
what am i doing wrong?