[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 87de422e8b50a9c36c9207261e470519799b28b8

Freddy Vulto fvulto at gmail.com
Fri Oct 30 16:20:15 UTC 2009


The following commit has been merged in the master branch:
commit 820b7c260215249ef24cb8c9290fa0af82285f89
Author: Freddy Vulto <fvulto at gmail.com>
Date:   Fri Oct 30 17:18:43 2009 +0100

    (testsuite) Fix _known_hosts_real
    Clear COMPREPLY after test now that _known_hosts_real is appending
    instead of setting COMPREPLY.

diff --git a/test/lib/library.sh b/test/lib/library.sh
index 1852c9b..b4285f1 100644
--- a/test/lib/library.sh
+++ b/test/lib/library.sh
@@ -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
 }
 
 

-- 
bash-completion



More information about the Bash-completion-commits mailing list