Revision 8921
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/util.sh | ||
---|---|---|
129 | 129 |
echo_vars () # usage: echo_vars var... |
130 | 130 |
{ |
131 | 131 |
inc_log_level |
132 |
if can_log; then { echo -n "$PS4"; declare -p "${@%%=*}";} >&2; fi |
|
132 |
if can_log; then |
|
133 |
local var |
|
134 |
for var in "${@%%=*}"; do { echo -n "$PS4"; declare -p "$var";} >&2;done |
|
135 |
fi |
|
133 | 136 |
} |
134 | 137 |
|
135 | 138 |
echo_export () |
Also available in: Unified diff
bugfix: lib/util.sh: echo_vars (): output each var separately so that each is prefixed by $PS4