Fix leaking $prev from _service().

This commit is contained in:
Ville Skyttä 2009-07-23 00:37:33 +03:00
parent 9bb02ca317
commit a490556a5b
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -640,7 +640,7 @@ _usb_ids()
{ have service || [ -d /etc/init.d/ ]; } &&
_service()
{
local cur sysvdir
local cur prev sysvdir
COMPREPLY=()
prev=${COMP_WORDS[COMP_CWORD-1]}