Timeline for answer to How to use a heredoc inside a bash function? by David
Current License: CC BY-SA 3.0
Post Revisions
7 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| S Apr 26, 2018 at 17:22 | history | suggested | 0laf | CC BY-SA 3.0 |
mention trailing space
|
| Apr 25, 2018 at 15:03 | review | Suggested edits | |||
| S Apr 26, 2018 at 17:22 | |||||
| Apr 24, 2018 at 7:43 | comment | added | 0laf |
Additionally: A trailing space behind the closing HEREDOC can also cause this (These kind of errors are really hard to track down. sigh.)
|
|
| Nov 22, 2011 at 8:16 | comment | added | David | Indeed! I love me some heredocs. | |
| Nov 22, 2011 at 3:44 | comment | added | Leftium | Weird, it works now... Vim color syntax highlighting recognized the HEREDOC before (it doesn't if you add that space before the closing HEREDOC) I modified the original script to just use an external file, so I'm not sure what was wrong. It will be much more convenient with heredocs, though! | |
| Nov 22, 2011 at 3:42 | vote | accept | Leftium | ||
| Nov 22, 2011 at 2:36 | history | answered | David | CC BY-SA 3.0 |