[Bash-completion-commits] [SCM] bash-completion branch, master, updated. a490556a5bb379695eaeb37d18ad14e10c6dceec
Ville Skyttä
ville.skytta at iki.fi
Wed Jul 22 21:37:48 UTC 2009
The following commit has been merged in the master branch:
commit a490556a5bb379695eaeb37d18ad14e10c6dceec
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Thu Jul 23 00:37:33 2009 +0300
Fix leaking $prev from _service().
diff --git a/CHANGES b/CHANGES
index 03d1350..fc6faea 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 75162a0..c17a564 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]}
--
bash-completion
More information about the Bash-completion-commits
mailing list