Date: 15 Jan 2001 13:08:02 -0500 From: Lowell Gilbert <lowell@world.std.com> To: freebsd-questions@freebsd.org Subject: Re: date command and it's return code.. Message-ID: <44zogshenx.fsf@lowellg.ne.mediaone.net> In-Reply-To: ron@zappa.demon.nl's message of "14 Jan 2001 22:37:24 %2B0100" References: <001301c07e71$d8cb9a00$0304a8c0@smalweer.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
ron@zappa.demon.nl (Ron Klinkien) writes: > Why is the /bin/date command returning such weird return codes? > > It returns 512 on an succesfull time change, and 256 when > started with wrong arguments.. I don't think the return value is *ever* set, except in a few odd network-related cases. That means return values are essentially random. A good start might be initializing the return value to zero, but more error-handling code is really needed. I may be missing something here, because as far as I can see, this problem has existed since before our CVS tree records. - Lowell To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44zogshenx.fsf>