• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Termination status
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: NSDictionary question
  • Next by Date: App file types
  • Previous by thread: Re: Interface/usability question
  • Next by thread: Termination status
  • Index(es):
    • Date
    • Thread