aboutsummaryrefslogtreecommitdiff
path: root/bash/bash_completion.d/ftp.bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-11-30 13:21:50 +1300
committerTom Ryder <tom@sanctum.geek.nz>2018-11-30 13:21:50 +1300
commitda4e6a80a24bc1002e06b0b4a386254a5d5cb050 (patch)
tree279f27aae77dc7316cd6d1c85c1f7766f4bb9490 /bash/bash_completion.d/ftp.bash
parentMerge branch 'hotfix/v2.1.1' into develop (diff)
downloaddotfiles-da4e6a80a24bc1002e06b0b4a386254a5d5cb050.tar.gz
dotfiles-da4e6a80a24bc1002e06b0b4a386254a5d5cb050.zip
Drop support for Bash <= 3.0
This allows removing a fair bit of boilerplate checking for the availability of `-o bashdefault` for the `complete` builtin, and greatly simplifies the minimum version check.
Diffstat (limited to 'bash/bash_completion.d/ftp.bash')
-rw-r--r--bash/bash_completion.d/ftp.bash8
1 files changed, 1 insertions, 7 deletions
diff --git a/bash/bash_completion.d/ftp.bash b/bash/bash_completion.d/ftp.bash
index 335d711a..d7ee8963 100644
--- a/bash/bash_completion.d/ftp.bash
+++ b/bash/bash_completion.d/ftp.bash
@@ -30,10 +30,4 @@ _ftp() {
COMPREPLY[${#COMPREPLY[@]}]=$machine
done
}
-
-# bashdefault requires Bash >=3.0
-if ((BASH_VERSINFO[0] >= 3)) ; then
- complete -F _ftp -o bashdefault -o default ftp
-else
- complete -F _ftp -o default ftp
-fi
+complete -F _ftp -o bashdefault -o default ftp