Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!wuarchive!rex!samsung!munnari.oz.au!metro!cluster!necisa!boyd From: boyd@necisa.ho.necisa.oz (Boyd Roberts) Newsgroups: comp.lang.c Subject: Re: perror - (was Re: redirecting output) Message-ID: <1796@necisa.ho.necisa.oz> Date: 8 Jul 90 07:56:32 GMT References: <22931@dartvax.Dartmouth.EDU> <1990Jun29.172429.2818@zoo.toronto.edu> <1792@necisa.ho.necisa.oz> <5XE49LB@xds13.ferranti.com> <1990Jul7.020719.14239@bhpese.oz.au> Organization: NEC Information Systems Australia Pty. Ltd. Lines: 30 In article <1990Jul7.020719.14239@bhpese.oz.au> Sm@bhpese.oz.au (Scott Merrilees) writes: > >I've never come across the need for the *++my_name == '\0' check, has >anybody else? Boyd? > Well, I haven't seen it, but it can happen. But, the day someone goes... p = "/bin/junk/"; execl(p, p, ..., (char *)0); Or: $ /bin/junk/ ... I don't want my messages to say: : Could not save "the world". Not owner The philosophy of ``it'll never* happen, so don't code for it'' is _wrong_. Boyd Roberts boyd@necisa.ho.necisa.oz.au ``When the going gets wierd, the weird turn pro...'' * never == low probability, but still possible