Project

General

Profile

« Previous | Next » 

Revision 9481

lib/sh/util.sh: to_file(): log $stdout so users can tell which file is being created by the command. for some reason, can't use `local redirs=(">$stdout")` because the redirections don't seem to be applied. can't yet use `log+ -2 echo_vars stdout` because log+ does not yet support negative adjustments (they cause PS4 to be emptied out before being re-prepended to).

View differences:

lib/sh/util.sh
612 612
	echo_func; kw_params stdout
613 613
	: "${stdout?}"
614 614
	if test "$if_not_exists"; then require_not_exists "$stdout" || return 0; fi
615
	
616
	log ">$stdout"
615 617
	"$@" >"$stdout" || { save_e; rm "$stdout"; rethrow; }
616 618
}
617 619
alias to_file='"to_file" ' # last space alias-expands next word

Also available in: Unified diff