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