From 856365f937207b224a12b477532bb3decee0749b Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Tue, 6 Sep 2016 10:46:42 +1200 Subject: Feature test for find(1) completion --- bash/bash_completion.d/find.bash | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bash/bash_completion.d/find.bash b/bash/bash_completion.d/find.bash index 50a6cc41..74dc17ad 100644 --- a/bash/bash_completion.d/find.bash +++ b/bash/bash_completion.d/find.bash @@ -1,3 +1,7 @@ +# compopt requires Bash >=4.0, and I don't think it's worth making a compatible +# version +((BASH_VERSINFO[0] >= 4)) || return + # Semi-intelligent completion for find(1); nothing too crazy _find() { -- cgit v1.2.3