Termination status
Termination status
- Subject: Termination status
- From: Malte Tancred <email@hidden>
- Date: Thu, 14 Nov 2002 18:53:51 +0100
Hi,
a few days ago I wrote a small document based application that lets you
view the contents of a bom file in an outline view. As I wasn't
interested in learning the binary bom file format I made the document
controller (NSDocument) call /usr/bin/lsbom which produce an output a
lot easier to parse. I noticed however that lsbom always exited 0
(zero) whether or not it succeeded reading the bom file.
Personally I consider this a bug. A command line tool should in my
opinion report success by exiting zero and failure by exiting
<something else>.
Tools that do not follow this guideline are harder to use than tools
that do, simply because there's no way (or more difficult and error
prone ways) for callers to find out if all went well, be it shell
scripts or other programs.
What do you think? Do you consider this a bug worth reporting to Apple?
Thanks,
Malte
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.