More $prev leak fixes.

This commit is contained in:
Ville Skyttä 2009-05-18 20:26:49 +03:00
parent 578810de33
commit 23bd8099f0
5 changed files with 15 additions and 14 deletions

View File

@ -45,7 +45,8 @@ bash-completion (1.x)
completion, assume only that --*file*= does, and that --*dir*= takes dirs. completion, assume only that --*file*= does, and that --*dir*= takes dirs.
* Add make --old/new-file, --assume-old/new, --what-if value completions. * Add make --old/new-file, --assume-old/new, --what-if value completions.
* Add smartctl -n/--nocheck completion, add more other value completions. * Add smartctl -n/--nocheck completion, add more other value completions.
* Fix leaking $prev from cpio and mkinitrd completion. * Fix leaking $prev from cpio, dsniff, freeciv, gkrellm, mkinitrd, and
tcpdump completions.
* Split ant completion to contrib/ant, improve the built in one. * Split ant completion to contrib/ant, improve the built in one.
[ Todd Zullinger ] [ Todd Zullinger ]

View File

@ -3216,7 +3216,7 @@ complete -F _iptables iptables
have tcpdump && have tcpdump &&
_tcpdump() _tcpdump()
{ {
local cur local cur prev
COMPREPLY=() COMPREPLY=()
cur=`_get_cword` cur=`_get_cword`

View File

@ -7,7 +7,7 @@
# #
_arpspoof() _arpspoof()
{ {
local cur local cur prev
COMPREPLY=() COMPREPLY=()
cur=`_get_cword` cur=`_get_cword`
@ -37,7 +37,7 @@ complete -F _arpspoof arpspoof
# #
_dnsspoof() _dnsspoof()
{ {
local cur local cur prev
COMPREPLY=() COMPREPLY=()
cur=`_get_cword` cur=`_get_cword`
@ -65,7 +65,7 @@ complete -F _dnsspoof dnsspoof
# #
_dsniff() _dsniff()
{ {
local cur local cur prev
COMPREPLY=() COMPREPLY=()
cur=`_get_cword` cur=`_get_cword`
@ -94,7 +94,7 @@ complete -F _dsniff dsniff
# #
_snarf() _snarf()
{ {
local cur local cur prev
COMPREPLY=() COMPREPLY=()
cur=`_get_cword` cur=`_get_cword`
@ -118,7 +118,7 @@ complete -F _snarf filesnarf mailsnarf msgsnarf
# #
_macof() _macof()
{ {
local cur local cur prev
COMPREPLY=() COMPREPLY=()
cur=`_get_cword` cur=`_get_cword`
@ -161,7 +161,7 @@ complete -F _sshmitm sshmitm
# #
_sshow() _sshow()
{ {
local cur local cur prev
COMPREPLY=() COMPREPLY=()
cur=`_get_cword` cur=`_get_cword`
@ -185,7 +185,7 @@ complete -F _sshow sshow
# #
_tcpkill() _tcpkill()
{ {
local cur local cur prev
COMPREPLY=() COMPREPLY=()
cur=`_get_cword` cur=`_get_cword`
@ -209,7 +209,7 @@ complete -F _tcpkill tcpkill
# #
_tcpnice() _tcpnice()
{ {
local cur local cur prev
COMPREPLY=() COMPREPLY=()
cur=`_get_cword` cur=`_get_cword`
@ -233,7 +233,7 @@ complete -F _tcpnice tcpnice
# #
_urlsnarf() _urlsnarf()
{ {
local cur local cur prev
COMPREPLY=() COMPREPLY=()
cur=`_get_cword` cur=`_get_cword`

View File

@ -5,7 +5,7 @@
_civserver() _civserver()
{ {
local cur local cur prev
COMPREPLY=() COMPREPLY=()
cur=`_get_cword` cur=`_get_cword`
@ -32,7 +32,7 @@ complete -F _civserver civserver
# #
_civclient() _civclient()
{ {
local cur local cur prev
COMPREPLY=() COMPREPLY=()
cur=`_get_cword` cur=`_get_cword`

View File

@ -5,7 +5,7 @@
_gkrellm() _gkrellm()
{ {
local cur local cur prev
COMPREPLY=() COMPREPLY=()
cur=`_get_cword` cur=`_get_cword`