#!/bin/sh # This just ensures that the example code produces the expected output, which # is sufficient to verify the behavior we care about. Prints diff and exits # non-zero on error. ./tpl example/vars example/text.tpl > output.tmp diff output.tmp - <<-eof My favorite food is pizza, and my favorite beverage is coffee. I'm going to have pizza and coffee for dinner tonight. 1, 2, and 3 are numbers. 1 is the smallest of the three. eof result=$? rm output.tmp exit $result