From e990d69b46ed3d1b701d35c04eca4fb4ac30b599 Mon Sep 17 00:00:00 2001 From: Guillaume Rousse Date: Wed, 4 Feb 2009 21:33:43 +0100 Subject: [PATCH] use _get_cword --- to_review/cowsay | 2 +- to_review/ldapvi | 2 +- to_review/rpcdebug | 2 +- to_review/smartmontools | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/to_review/cowsay b/to_review/cowsay index 0d7b6d8b..f150585f 100644 --- a/to_review/cowsay +++ b/to_review/cowsay @@ -9,7 +9,7 @@ _cowsay() local cur prev COMPREPLY=() - cur=${COMP_WORDS[COMP_CWORD]} + cur=`_get_cword` prev=${COMP_WORDS[COMP_CWORD-1]} case $prev in diff --git a/to_review/ldapvi b/to_review/ldapvi index 3fee947b..324f548e 100644 --- a/to_review/ldapvi +++ b/to_review/ldapvi @@ -9,7 +9,7 @@ _ldapvi() local cur prev COMPREPLY=() - cur=${COMP_WORDS[COMP_CWORD]} + cur=`_get_cword` prev=${COMP_WORDS[COMP_CWORD-1]} case "$prev" in diff --git a/to_review/rpcdebug b/to_review/rpcdebug index 2fcda251..6c2dd539 100644 --- a/to_review/rpcdebug +++ b/to_review/rpcdebug @@ -27,7 +27,7 @@ _rpcdebug() local cur prev COMPREPLY=() - cur=${COMP_WORDS[COMP_CWORD]} + cur=`_get_cword` prev=${COMP_WORDS[COMP_CWORD-1]} case $prev in diff --git a/to_review/smartmontools b/to_review/smartmontools index 05099a80..fc50d115 100644 --- a/to_review/smartmontools +++ b/to_review/smartmontools @@ -58,7 +58,7 @@ _smartctl() local cur prev COMPREPLY=() - cur=${COMP_WORDS[COMP_CWORD]} + cur=`_get_cword` prev=${COMP_WORDS[COMP_CWORD-1]} # --name value style option