aboutsummaryrefslogtreecommitdiffstats
path: root/bash_completion/kerl
diff options
context:
space:
mode:
authorMark Allen <[email protected]>2016-04-13 15:20:50 -0500
committerMark Allen <[email protected]>2016-04-13 15:20:50 -0500
commitfc570610885090bf70579ed81eb6cbaff4df7e84 (patch)
treeb77e19d12eb4d9bb4a3f9e6e19a1f9fa42793613 /bash_completion/kerl
parentbf38e6c600826b9f759555f9a74e947d1fbb5a52 (diff)
parent5322e9fffaed11e84c545552c34e5d1d252ff7e0 (diff)
downloadkerl-fc570610885090bf70579ed81eb6cbaff4df7e84.tar.gz
kerl-fc570610885090bf70579ed81eb6cbaff4df7e84.tar.bz2
kerl-fc570610885090bf70579ed81eb6cbaff4df7e84.zip
Merge pull request #46 from mryufeng/master0.9.1
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 76c4ad2..689463d 100644
--- a/bash_completion/kerl
+++ b/bash_completion/kerl
@@ -4,7 +4,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)