From da4e6a80a24bc1002e06b0b4a386254a5d5cb050 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Fri, 30 Nov 2018 13:21:50 +1300 Subject: 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. --- bash/bash_completion.d/sftp.bash | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'bash/bash_completion.d/sftp.bash') diff --git a/bash/bash_completion.d/sftp.bash b/bash/bash_completion.d/sftp.bash index 60044e41..ad4d406f 100644 --- a/bash/bash_completion.d/sftp.bash +++ b/bash/bash_completion.d/sftp.bash @@ -1,10 +1,4 @@ # Completion for sftp(1) with ssh_config(5) hostnames declare -F _ssh_config_hosts >/dev/null || source "$HOME"/.bash_completion.d/_ssh_config_hosts.bash - -# bashdefault requires Bash >=3.0 -if ((BASH_VERSINFO[0] >= 3)) ; then - complete -F _ssh_config_hosts -o bashdefault -o default sftp -else - complete -F _ssh_config_hosts -o default sftp -fi +complete -F _ssh_config_hosts -o bashdefault -o default sftp -- cgit v1.2.3