diff options
author | David Paleino <dapal@debian.org> | 2010-02-08 17:25:08 +0100 |
---|---|---|
committer | David Paleino <dapal@debian.org> | 2010-02-08 17:25:08 +0100 |
commit | f8bafe285e7d20fdd82f77289059dd18f78312c2 (patch) | |
tree | 72da1d46320dbd37c733b070180fb3ecac4c4742 /contrib/yp-tools | |
parent | 2cd91420d2e9a4ce571cbe4e4a90e512653be151 (diff) | |
download | bash-completion-f8bafe285e7d20fdd82f77289059dd18f78312c2.tar.gz |
Use _get_comp_words_by_ref to set cur, prev, [..] instead of manually using COMP_WORDS
Diffstat (limited to 'contrib/yp-tools')
-rw-r--r-- | contrib/yp-tools | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/yp-tools b/contrib/yp-tools index 4644ba5b..7252a129 100644 --- a/contrib/yp-tools +++ b/contrib/yp-tools @@ -6,7 +6,7 @@ _ypmatch() local cur map cmd COMPREPLY=() - cur=`_get_cword` + _get_comp_words_by_ref cur cmd=${1##*/} [[ $cmd == ypcat && $COMP_CWORD -gt 1 ]] && return 0 |