Project

General

Profile

« Previous | Next » 

Revision 12827

bugfix: lib/sh/util.sh: verbosity_compat alias: need to use `declare verbosity="$verbosity"` instead of `declare verbosity`, which would just clear $verbosity

View differences:

trunk/lib/sh/util.sh
484 484
# usage: (verbosity_compat; cmd)
485 485
function verbosity_compat()
486 486
{ echo_func; if ((verbosity == 1)); then unset verbosity; fi; }
487
alias verbosity_compat='declare verbosity; "verbosity_compat"'
487
alias verbosity_compat='declare verbosity="$verbosity"; "verbosity_compat"'
488 488

  
489 489

  
490 490
# indent for call tree. this is *not* the log_level (below).

Also available in: Unified diff