[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.3-151-g1709686
Ville Skyttä
ville.skytta at iki.fi
Thu Apr 28 18:45:58 UTC 2011
The following commit has been merged in the master branch:
commit 3998a70dd9a413e98876054115dd860420fefee5
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Wed Apr 27 23:37:44 2011 +0300
route: Don't leak local $opt.
diff --git a/completions/net-tools b/completions/net-tools
index bb9337c..55dfa84 100644
--- a/completions/net-tools
+++ b/completions/net-tools
@@ -78,7 +78,7 @@ _route()
fi
# Remove already given options from completions
- local i found
+ local opt found i
for opt in add del -host -net netmask metric mss window irtt reject mod \
dyn reinstate dev default gw; do
found=false
diff --git a/test/completion/route.exp b/test/completion/route.exp
new file mode 100644
index 0000000..beff825
--- /dev/null
+++ b/test/completion/route.exp
@@ -0,0 +1 @@
+assert_source_completions route
diff --git a/test/lib/completions/a2ps.exp b/test/lib/completions/route.exp
similarity index 80%
copy from test/lib/completions/a2ps.exp
copy to test/lib/completions/route.exp
index 77cd07f..76e1b5e 100644
--- a/test/lib/completions/a2ps.exp
+++ b/test/lib/completions/route.exp
@@ -11,7 +11,7 @@ proc teardown {} {
setup
-assert_complete_any "a2ps "
+assert_complete_any "route "
sync_after_int
--
bash-completion
More information about the Bash-completion-commits
mailing list