summaryrefslogtreecommitdiff
path: root/completions/rtcwake
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2011-04-21 11:04:51 +0300
committerVille Skyttä <ville.skytta@iki.fi>2011-04-21 11:15:01 +0300
commit8048917968a679f3eecfd5fd237a7ee2823ab855 (patch)
treef8f9e67299a0005b1b2441c3232f4c08932385e9 /completions/rtcwake
parente3ca91b9866e60ac541c9a1cf065b855a1681bc3 (diff)
downloadbash-completion-8048917968a679f3eecfd5fd237a7ee2823ab855.tar.gz
Use _init_completion() in completions/[q-z]*.
Diffstat (limited to 'completions/rtcwake')
-rw-r--r--completions/rtcwake6
1 files changed, 3 insertions, 3 deletions
diff --git a/completions/rtcwake b/completions/rtcwake
index 9f2e896e..7cfb49bd 100644
--- a/completions/rtcwake
+++ b/completions/rtcwake
@@ -4,10 +4,10 @@ have rtcwake || return
_rtcwake()
{
- COMPREPLY=()
- local cur prev split=false
- _get_comp_words_by_ref cur prev
+ local cur prev words cword
+ _init_completion || return
+ local split=false
_split_longopt && split=true
case "$prev" in