ytnef command-line program doesn't signal completion status
Brought to you by:
yerase
The main() routine in ytnef doesn't return a coherent status value. When used as a command-line program on Unix systems, this is an important thing to do. It should return 0 for successful completion, and a non-zero value for error indications.
Here's a patch. Note that it also writes to stderr instead of stdout in various places so that that output can be appropriately captured by controlling processes.