Skip to content

Instantly share code, notes, and snippets.

@minego
Created September 10, 2013 21:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save minego/6516229 to your computer and use it in GitHub Desktop.
Save minego/6516229 to your computer and use it in GitHub Desktop.
#!/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