Revision 9652
Added by Aaron Marcuse-Kubitza over 11 years ago
util.sh | ||
---|---|---|
644 | 644 |
if test "$if_not_exists"; then require_not_exists "$stdout" || return 0; fi |
645 | 645 |
|
646 | 646 |
log ">$stdout" |
647 |
"$@" >"$stdout" || { save_e; rm "$stdout"; rethrow; } |
|
647 |
local redirs=("${redirs[@]}" ">$stdout") |
|
648 |
"$@" || { save_e; rm "$stdout"; rethrow; } |
|
648 | 649 |
} |
649 | 650 |
alias to_file='"to_file" ' # last space alias-expands next word |
650 | 651 |
|
Also available in: Unified diff
lib/sh/util.sh: to_file(): use @redirs to echo and set >$stdout instead of setting it manually, which is possible now that the command() @redirs bug has been fixed