Project

General

Profile

« Previous | Next » 

Revision 9211

lib/sh/util.sh: moved stdout2log_fd() to command verbose output subsection of verbose output since it is primarily intended for use with external commands

View differences:

util.sh
144 144

  
145 145
err_fd=2 # stderr
146 146

  
147
# usage: (stdout2log_fd; cmd...) || return
148
# `|| return` needed on Mac because of bug where -e doesn't apply to ()
149
stdout2log_fd() { exec >&2; }
150

  
151 147
usage() { echo "Usage: $1" >&2; return 2; }
152 148

  
153 149

  
......
205 201
# `|| return` needed on Mac because of bug where -e doesn't apply to ()
206 202
function limit_log_fd() { if ! (log++; can_log); then disable_logging; fi; }
207 203

  
204
# usage: (stdout2log_fd; cmd...) || return
205
# `|| return` needed on Mac because of bug where -e doesn't apply to ()
206
stdout2log_fd() { exec >&2; }
208 207

  
208

  
209 209
### command echoing
210 210

  
211 211
alias echo_params='log "$*"'

Also available in: Unified diff