Project

General

Profile

« Previous | Next » 

Revision 12211

lib/sh/util.sh: stdout_contains(): usage: documented that this requires a `{ ... } 41>&1` wrapper

View differences:

trunk/lib/sh/util.sh
716 716
		# redirects 2->{1,log_fd} (2 is *not* redirected back to 2)
717 717
}
718 718

  
719
stdout_contains() # usage: stderr2stdout cmd|stdout_contains echo_run grep ...
719
stdout_contains()
720
# usage: { stderr2stdout cmd|stdout_contains echo_run grep ...; } 41>&1
720 721
{ echo_func; pipe_delay; pipe_delay; "$@"|echo_stdout >/dev/null; }
721 722

  
722 723
function stderr_matches() # usage: if pattern=... stderr_matches cmd...; \

Also available in: Unified diff