Revision 9716
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/sh/util.sh | ||
---|---|---|
278 | 278 |
# usage: in func: log++; ... OR log_local; "log++"; ... |
279 | 279 |
# outside func: log++; ...; log-- |
280 | 280 |
# before cmd: log++ cmd... |
281 |
# with a cmd, assignments are applied just to it, so log_local is not needed |
|
281 | 282 |
# without a cmd, "$@" expands to nothing and assignments are applied to caller |
282 | 283 |
# "${@:2}" expands to all of $@ after *1st* arg, not 2nd ($@ indexes start at 1) |
283 | 284 |
log+() |
Also available in: Unified diff
lib/sh/util.sh: log+(): documented that with a cmd, assignments are applied just to the cmd, so log_local is not needed