Project

General

Profile

« Previous | Next » 

Revision 9205

lib/sh/util.sh: set_fd(): don't increase the log_level for this function, and instead let callers increase it if needed

View differences:

lib/sh/util.sh
311 311

  
312 312
set_fd() # usage: dest=fd dir='[<>]' src=fd [noclobber=1] set_fd
313 313
{
314
	log++; echo_func
314
	echo_func
315 315
	: "${dest:?}" "${dir:?}" "${src:?}"
316 316
	test ! "$noclobber" || require_fd_not_exists "$dest" || return 0
317 317
	echo_eval exec "$dest$dir&$src"
......
321 321
{
322 322
	minor=1 echo_func
323 323
	: "${prefix:?}" "${src:?}" "${dir:?}"
324
	dest="$prefix$src" noclobber=1 set_fd
324
	log++; dest="$prefix$src" noclobber=1 set_fd
325 325
}
326 326

  
327 327
# convention: use fd 10/11/12 for command-specific alternate stdin/stdout/stderr

Also available in: Unified diff