calc example exits cleanly on end of input
Merge pull request #3 from wconrad/calc-example-exits-cleanly-on-eof

calc example exits cleanly on end of input