Date: Tue, 17 Feb 2009 12:15:23 +0100 From: Bertram Scharpf <lists@bertram-scharpf.de> To: Robert Huff <roberthuff@rcn.com>, freebsd-questions@freebsd.org Subject: Re: OT: sed + exit status Message-ID: <20090217111523.GA24947@marge.bs.l> In-Reply-To: <18838.52454.185642.297737@jerusalem.litteratus.org> References: <18838.52454.185642.297737@jerusalem.litteratus.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, Am Samstag, 14. Feb 2009, 08:53:42 -0500 schrieb Robert Huff: > According to the man page: > > EXIT STATUS > The sed utility exits 0 on success, and >0 if an error occurs. > > > However, what constitutes "success" is undefined. A short peek at the source code reveals: An exit code of 1 will be returned when (1) the -? option or an unknown one requested a usage message and (2) the input file cannot be opened. Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090217111523.GA24947>