Merge branch 'fvu'
This commit is contained in:
commit
87de422e8b
@ -16,10 +16,13 @@ diff_env() {
|
||||
|
||||
|
||||
# Output array elements, sorted and separated by newline
|
||||
# Unset variable after outputting.
|
||||
# @param $1 Name of array variable to process
|
||||
# @param $2 -u (optional) Unset variable after echo
|
||||
echo_array() {
|
||||
local IFS=$'\n'
|
||||
eval echo \"\${$1[*]}\" | sort
|
||||
eval printf "%s" \"\${$1[*]}\" | sort
|
||||
unset -v $1
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user