Revision 9217
Added by Aaron Marcuse-Kubitza over 11 years ago
util.sh | ||
---|---|---|
203 | 203 |
# `|| return` needed on Mac because of bug where -e doesn't apply to () |
204 | 204 |
function limit_log_fd() { if ! (log++; can_log); then disable_logging; fi; } |
205 | 205 |
|
206 |
# usage: (stdout2log_fd; cmd...) || return |
|
207 |
# `|| return` needed on Mac because of bug where -e doesn't apply to () |
|
208 |
stdout2log_fd() { exec >&"$log_fd"; } |
|
209 | 206 |
|
210 |
|
|
211 | 207 |
### command echoing |
212 | 208 |
|
213 | 209 |
alias echo_params='log "$*"' |
Also available in: Unified diff
lib/sh/util.sh: removed no longer used stdout2log_fd(). set $cmd_log_fd instead.