Revision 9376
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/sh/util.sh | ||
---|---|---|
239 | 239 |
else echo "${PS4: -$1}"; fi)" \ |
240 | 240 |
verbosity=$((verbosity - $1)) "${@:2}" |
241 | 241 |
} |
242 |
log-() { log+ $((-($1))); } |
|
243 | 242 |
log++() { log+ 1 "$@"; } |
244 | 243 |
log--() { log+ -1 "$@"; } |
245 | 244 |
alias log_local='declare PS4="$PS4" verbosity="$verbosity"' |
246 | 245 |
alias log+='log_local; "log+" ' # last space alias-expands next word |
247 |
alias log-='log_local; "log-" ' # last space alias-expands next word |
|
248 | 246 |
alias log++='log_local; "log++" ' # last space alias-expands next word |
249 | 247 |
alias log--='log_local; "log--" ' # last space alias-expands next word |
250 | 248 |
|
Also available in: Unified diff
lib/sh/util.sh: removed no longer used log-. use log+ with a negative argument instead.