Project

General

Profile

« Previous | Next » 

Revision 9217

lib/sh/util.sh: removed no longer used stdout2log_fd(). set $cmd_log_fd instead.

View differences:

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