diff --git a/CHANGES b/CHANGES index 03d1350a..fc6faeaa 100644 --- a/CHANGES +++ b/CHANGES @@ -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. diff --git a/bash_completion b/bash_completion index 75162a06..c17a5645 100644 --- a/bash_completion +++ b/bash_completion @@ -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]}