Project

General

Profile

« Previous | Next » 

Revision 12216

lib/sh/util.sh: ignore_err_msg(): documented that unlike `|| true`, this suppresses only errors caused by a particular error message, rather than all error exit statuses

View differences:

trunk/lib/sh/util.sh
738 738
if self_being_included; then
739 739

  
740 740
function ignore_err_msg() # usage: pattern=... ignore_err_msg cmd...
741
# unlike `|| true`, this suppresses only errors caused by a particular error
742
# *message*, rather than all error exit statuses
741 743
{
742 744
	echo_func; kw_params pattern; : "${pattern?}"
743 745
	stderr_matches "$@" || rethrow

Also available in: Unified diff