Project

General

Profile

« Previous | Next » 

Revision 12825

lib/sh/util.sh: log+(): use easier-to-understand log_local instead of prefix-assignments to limit assignments to the invoked command

View differences:

trunk/lib/sh/util.sh
453 453
#        outside func: log++; ...; log--
454 454
#        before cmd:   clog++ cmd  OR  clog+ num cmd  OR  clog++ clog++... cmd
455 455
# with a cmd, assignments are applied just to it, so log_local is not needed
456
# without a cmd, assignments are applied to caller
456
# without a cmd, assignments are applied to caller ("$@" expands to nothing)
457 457
# "${@:2}" expands to all of $@ after *1st* arg, not 2nd ($@ indexes start at 1)
458 458
log+()
459 459
{

Also available in: Unified diff