Fix leaking $i from `man' completion

This commit is contained in:
Freddy Vulto 2009-07-24 09:07:32 +02:00
parent a490556a5b
commit 6966cad8cf
2 changed files with 2 additions and 1 deletions

View File

@ -139,6 +139,7 @@ bash-completion (1.x)
[ Freddy Vulto ]
* Patched _known_hosts() to support multiple {Global,User}KnownHosts in SSH
config files, thanks to Thomas Nilsson (Alioth: #311595) (Debian: #524190)
* Fix leaking $i from info and man completions.
-- David Paleino <d.paleino@gmail.com> Thu, 18 Jun 2009 13:12:36 +0200

View File

@ -8,7 +8,7 @@
-o $UNAME = OpenBSD ] &&
_man()
{
local cur prev sect manpath manext mansect uname
local cur i prev sect manpath manext mansect uname
manext="@([0-9lnp]|[0-9][px]|man|3pm)?(.@(gz|bz2|lzma))"
mansect="@([0-9lnp]|[0-9][px]|3pm)"