Created
September 10, 2013 21:49
-
-
Save minego/6516229 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
Foo() | |
{ | |
echo << EOF | |
This is a here document. It has to be left justified because | |
I used << instead of <<-. Annoying, ins't it? | |
EOF | |
} | |
Bar() | |
{ | |
echo <<- EOF | |
This is another here document. In this one I can line | |
my document up with the surrounding code, which makes | |
it look pretty and prevents various twitches that I | |
tend to develop when looking at ugly code. | |
EOF | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment