Project

General

Profile

« Previous | Next » 

Revision 9687

lib/sh/util.sh: redir(): don't do redir actions if redir will be run later (i.e. if command to run starts with `redir` or `command`)

View differences:

lib/sh/util.sh
588 588
# to view only explicitly-displayed errors: explicit_errors_only=1 script...
589 589
{
590 590
	echo_func; kw_params redirs
591
	
592
	case "$1" in redir|command) "$@"; return;; esac # redir will be run later
591 593
	(
592 594
		log++ set_fds "${redirs[@]}"
593 595
		(case "$1" in command__exec) shift;; esac; echo_redirs_cmd)

Also available in: Unified diff