diff options
Diffstat (limited to 'contrib/rpcdebug')
-rw-r--r-- | contrib/rpcdebug | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/contrib/rpcdebug b/contrib/rpcdebug index 196d1872..be2a8709 100644 --- a/contrib/rpcdebug +++ b/contrib/rpcdebug @@ -14,7 +14,7 @@ _rpcdebug_flags() if [ -n "$module" ]; then COMPREPLY=( $( compgen -W "$(rpcdebug -vh 2>&1 \ - | grep '^'$module' '\ + | command grep '^'$module' '\ | awk '{$1 = ""; print $0}')" -- "$cur" ) ) fi } @@ -24,8 +24,7 @@ _rpcdebug() local cur prev COMPREPLY=() - cur=`_get_cword` - prev=${COMP_WORDS[COMP_CWORD-1]} + _get_comp_words_by_ref cur prev case $prev in -s) |