aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Mike Kelly <pioto@pioto.org> 2010-04-15 23:05:20 -0400
committerAvatar Mike Kelly <pioto@pioto.org> 2010-04-27 10:01:21 -0400
commitd862c6807efcc0f025f75366f03d7f4f4876f816 (patch)
tree3f3e6ddea3a4d9ace7006c4fdc369b21fd63b2d2
parente436d18beac7b69da521b4aa456fdf2afd374bc0 (diff)
downloadpaludis-d862c6807efcc0f025f75366f03d7f4f4876f816.tar.gz
paludis-d862c6807efcc0f025f75366f03d7f4f4876f816.tar.xz
Fix cave bashcomp for older bash-completion releases.
_get_pword is only available in bash-completion-scm
-rw-r--r--bash-completion/cave2
1 files changed, 1 insertions, 1 deletions
diff --git a/bash-completion/cave b/bash-completion/cave
index ac0d7bc..5fbddb1 100644
--- a/bash-completion/cave
+++ b/bash-completion/cave
@@ -240,7 +240,7 @@ __cave_import() {
}
_cave() {
- local cmd=`__cave_find_cmd` prev=`_get_pword` cur=`_get_cword`
+ local cmd=`__cave_find_cmd` prev=`_get_pword 2>/dev/null || echo ${COMP_WORDS[COMP_CWORD-1]}` cur=`_get_cword`
COMPREPLY=()