Revision 9173
Added by Aaron Marcuse-Kubitza over 11 years ago
util.sh | ||
---|---|---|
175 | 175 |
|
176 | 176 |
: "${log_level_indent= }" "${log_indent=}" |
177 | 177 |
export log_level_indent log_indent # propagate to invoked commands |
178 |
alias cmd_indent='declare log_indent="$log_indent$log_level_indent"'
|
|
178 |
alias indent='declare log_indent="$log_indent$log_level_indent"' |
|
179 | 179 |
|
180 | 180 |
# usage: in func: PS4++; ... |
181 | 181 |
# outside func: PS4++; ...; PS4-- |
... | ... | |
201 | 201 |
echo_params |
202 | 202 |
} |
203 | 203 |
|
204 |
alias echo_run_prep='{ cmd2rel_path; echo_cmd "$@"; cmd_indent; }'
|
|
204 |
alias echo_run_prep='{ cmd2rel_path; echo_cmd "$@"; indent; }' |
|
205 | 205 |
|
206 | 206 |
fi # load new aliases |
207 | 207 |
if self_being_included; then |
... | ... | |
210 | 210 |
|
211 | 211 |
.() |
212 | 212 |
{ |
213 |
cmd2rel_path; set -- . "$@"; (inc_log_level; echo_params); cmd_indent
|
|
213 |
cmd2rel_path; set -- . "$@"; (inc_log_level; echo_params); indent |
|
214 | 214 |
builtin "$@" |
215 | 215 |
} |
216 | 216 |
|
Also available in: Unified diff
lib/sh/util.sh: renamed cmd_indent to just indent now that indent is not being used for the PS4 level