OT: sed + exit status

Bertram Scharpf lists at bertram-scharpf.de
Tue Feb 17 03:28:03 PST 2009


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


More information about the freebsd-questions mailing list