Project

General

Profile

« Previous | Next » 

Revision 12768

lib/sh/util.sh: stderr_matches(): usage: split into wrapper usage and wrapper caller usage for clarity

View differences:

util.sh
779 779
# usage: { stderr2stdout cmd|stdout_contains echo_run grep ...; } 41>&1
780 780
{ echo_func; pipe_delay; pipe_delay; pipe_delay; "$@"|echo_stdout >/dev/null; }
781 781

  
782
stderr_matches() # usage: prep_try; if pattern=... [ignore_e=#] \
783
# stderr_matches cmd...; then rethrow; ...; fi; rethrow # rethrow other errors
782
stderr_matches() # wrapper usage: pattern=... [ignore_e=#] stderr_matches cmd...
783
# wrapper caller usage: prep_try; if wrapper; then rethrow; ...; fi; rethrow
784 784
# exit status of cmd is placed in $e for use with exception handling
785 785
{
786 786
	echo_func; kw_params pattern ignore_e; : "${pattern?}"

Also available in: Unified diff