route: Don't leak local $opt.

This commit is contained in:
Ville Skyttä 2011-04-27 23:37:44 +03:00
parent 9d810be86b
commit 3998a70dd9
3 changed files with 22 additions and 1 deletions

View File

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

View File

@ -0,0 +1 @@
assert_source_completions route

View File

@ -0,0 +1,20 @@
proc setup {} {
save_env
}
proc teardown {} {
assert_env_unmodified
}
setup
assert_complete_any "route "
sync_after_int
teardown