On Fri Jun 09, 2006 at 09:32:07 +1000, Erik de Castro Lopo wrote: >Mary Gardiner wrote: > >> EXIT STATUS >> 0 (true) System is on mains power >> 1 (false) System is not on mains power >> 255 (false) Power status could not be determined > ><boggle> >In what universe is 0 true and 1 false????? ></boogle>
Come on Eric, you know the Unix deal. Exit code 0 is always success with 1->255 being error codes. The doc could probably be better written as: >> 0 (success) System is on mains power >> 1 (error) System is not on mains power >> 255 (error) Power status could not be determined Of course libc is full of this stuff, strcmp() returns 0 (false) if the strings match. Benno -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
