Project

General

Profile

« Previous | Next » 

Revision 9165

lib/sh/util.sh: added echo_params alias and use it instead of `log "$*"`

View differences:

util.sh
187 187
alias inc_log_level='indent;  declare verbosity="$verbosity"; let! verbosity--'
188 188
alias dec_log_level='outdent; declare verbosity="$verbosity"; let! verbosity++'
189 189

  
190

  
191
### command echoing
192

  
193
alias echo_params='log "$*"'
194

  
190 195
fi # load new aliases
191 196
if self_being_included; then
192 197

  
193

  
194
### command echoing
195

  
196 198
echo_cmd()
197 199
{
198 200
	case "$1" in builtin|command) shift;; esac
199
	log "$*"
201
	echo_params
200 202
}
201 203

  
202 204
alias echo_run_prep='cmd2rel_path; echo_cmd "$@"; cmd_indent'
......
208 210

  
209 211
## internal commands
210 212

  
211
.() { cmd2rel_path; (inc_log_level; log "$*"); cmd_indent; builtin . "$@"; }
213
.() { cmd2rel_path; (inc_log_level; echo_params); cmd_indent; builtin . "$@"; }
212 214

  
213
echo_eval() { log "$*"; builtin eval "$@"; }
215
echo_eval() { echo_params; builtin eval "$@"; }
214 216

  
215 217
## external commands
216 218

  

Also available in: Unified diff