Date: Sat, 14 Feb 2009 08:53:42 -0500 From: Robert Huff <roberthuff@rcn.com> To: questions@freebsd.org Subject: OT: sed + exit status Message-ID: <18838.52454.185642.297737@jerusalem.litteratus.org>
next in thread | raw e-mail | index | archive | help
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. Consider the sed command s/FOO/bar/ . Is sed "successful" is there are no instances of FOO? Or only if there is at least one instance of FOO and it is successfully replaced by bar? Respectfully, Robert Huff
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?18838.52454.185642.297737>