Project

General

Profile

« Previous | Next » 

Revision 9132

lib/sh/util.sh: set_global_fds(): increase the log_level so the shadow_fd()/set_fd() function names aren't output at the default verbosity (3), and the redirection commands themselves aren't output at verbosity <= 2. set_global_fds() happens at the beginning of every script that uses util.sh, and is fairly predictable, so it isn't necessary to always echo these commands.

View differences:

lib/sh/util.sh
327 327
# allows commands to access global stdin/stdout/stderr using fd 20/21/22
328 328
# this works even when /dev/tty isn't available
329 329
{
330
	echo_minor_func
330
	inc_log_level; echo_func
331 331
	local prefix=2
332 332
	# ignore errors if a source fd isn't open
333 333
	src=0 dir='<' shadow_fd || true

Also available in: Unified diff