Merge branch 'fvu'

This commit is contained in:
Freddy Vulto 2009-10-30 17:20:03 +01:00
commit 87de422e8b

View File

@ -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
}