aboutsummaryrefslogtreecommitdiffstats
path: root/bash_completion/kerl
diff options
context:
space:
mode:
authoryufeng <[email protected]>2013-06-16 19:13:52 +0900
committeryufeng <[email protected]>2013-06-16 19:13:52 +0900
commit5322e9fffaed11e84c545552c34e5d1d252ff7e0 (patch)
tree6b47293c7a9eddaee27f60181d45c4586ce88521 /bash_completion/kerl
parent6cd7d5764b75efc27a53beae7c887240087e9849 (diff)
downloadkerl-5322e9fffaed11e84c545552c34e5d1d252ff7e0.tar.gz
kerl-5322e9fffaed11e84c545552c34e5d1d252ff7e0.tar.bz2
kerl-5322e9fffaed11e84c545552c34e5d1d252ff7e0.zip
make _get_comp_words_by_ref more strong
Diffstat (limited to 'bash_completion/kerl')
-rw-r--r--bash_completion/kerl6
1 files changed, 5 insertions, 1 deletions
diff --git a/bash_completion/kerl b/bash_completion/kerl
index 559d844..ebb14e7 100644
--- a/bash_completion/kerl
+++ b/bash_completion/kerl
@@ -3,7 +3,11 @@
_kerl()
{
local cur prev
- _get_comp_words_by_ref cur prev
+ if type _get_comp_words_by_ref &>/dev/null ; then
+ _get_comp_words_by_ref cur prev
+ else
+ cur=$2 prev=$3
+ fi
case $prev in
kerl)