Path: utzoo!attcan!uunet!cs.utexas.edu!execu!sequoia!rpp386!jfh From: jfh@rpp386.cactus.org (John F. Haugh II) Newsgroups: comp.unix.internals Subject: Re: Checking Exit Codes (was: Re: Trojan Horses) Message-ID: <18664@rpp386.cactus.org> Date: 31 Oct 90 18:55:59 GMT References: <18647@rpp386.cactus.org> <4057@awdprime.UUCP> <18658@rpp386.cactus.org> <4430@segue.segue.com> Reply-To: jfh@rpp386.cactus.org (John F. Haugh II) Organization: Lone Star Cafe and BBS Service Lines: 35 X-Clever-Slogan: Recycle or Die. In article <4430@segue.segue.com> jim@segue.segue.com (Jim Balter) writes: >You could avoid some embarrassment by testing your claims before making them >public. It would appear that you've never actually used assert, or that when >you do you don't follow the practice you recommend. ah, but i do try these things out - | Script is typescript, started Wed Oct 31 08:09:42 1990 | rpp386-> cat abort.c | #include | #include | #include | | main (argc, argv) | int argc; | char **argv; | { | signal (SIGIOT, SIG_IGN); | assert (argc == 2); | printf ("hi dave!\n"); | } | rpp386-> cc -o abort abort.c | abort.c | rpp386-> ./abort | Assertion failed: expr, file abort.c, line 10 | hi dave! | rpp386-> exit | Script done Wed Oct 31 08:10:00 1990 some people ... -- John F. Haugh II UUCP: ...!cs.utexas.edu!rpp386!jfh Ma Bell: (512) 832-8832 Domain: jfh@rpp386.cactus.org "SCCS, the source motel! Programs check in and never check out!" -- Ken Thompson