Revision 9870
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/sh/util.sh | ||
---|---|---|
334 | 334 |
|
335 | 335 |
# usage: (verbosity_compat; cmd) # cmd doesn't support verbosity='' |
336 | 336 |
function verbosity_compat() |
337 |
{ |
|
338 |
echo_func |
|
339 |
if test "$verbosity" = ''; then local verbosity; unset verbosity; fi |
|
340 |
} |
|
337 |
{ echo_func; if test "$verbosity" = ''; then unset verbosity; fi; } |
|
341 | 338 |
alias verbosity_compat='declare verbosity; "verbosity_compat"' |
342 | 339 |
|
343 | 340 |
|
Also available in: Unified diff
lib/sh/util.sh: verbosity_compat(): don't make $verbosity a local var of this function, because then the changes will not be visible to the caller