diff options
author | Ville Skyttä <ville.skytta@iki.fi> | 2009-10-22 11:50:20 +0300 |
---|---|---|
committer | Ville Skyttä <ville.skytta@iki.fi> | 2009-10-22 11:50:20 +0300 |
commit | f194a2d753c520877e0a97d4812ec2f7eeb95889 (patch) | |
tree | 143d8e3d05da0022f376119228d90b9ecf13b2ca /bash_completion | |
parent | 0822f37372271f9dcc411627b53d34b06bc1e5ba (diff) | |
download | bash-completion-f194a2d753c520877e0a97d4812ec2f7eeb95889.tar.gz |
bash < 3 support removal step 4: drop unneeded version checks.
Diffstat (limited to 'bash_completion')
-rw-r--r-- | bash_completion | 28 |
1 files changed, 10 insertions, 18 deletions
diff --git a/bash_completion b/bash_completion index 47254528..fe13b670 100644 --- a/bash_completion +++ b/bash_completion @@ -57,26 +57,18 @@ case ${UNAME} in esac # features supported by bash 2.05 and higher -if [ ${BASH_VERSINFO[0]} -eq 2 ] && [[ ${BASH_VERSINFO[1]} > 04 ]] || - [ ${BASH_VERSINFO[0]} -gt 2 ]; then - declare -r bash205=$BASH_VERSION 2>/dev/null || : - default="-o default" - dirnames="-o dirnames" - filenames="-o filenames" - compopt=: -fi +declare -r bash205=$BASH_VERSION 2>/dev/null || : +default="-o default" +dirnames="-o dirnames" +filenames="-o filenames" +compopt=: # features supported by bash 2.05b and higher -if [ ${BASH_VERSINFO[0]} -eq 2 ] && [[ ${BASH_VERSINFO[1]} = "05b" ]] || - [ ${BASH_VERSINFO[0]} -gt 2 ]; then - declare -r bash205b=$BASH_VERSION 2>/dev/null || : - nospace="-o nospace" -fi +declare -r bash205b=$BASH_VERSION 2>/dev/null || : +nospace="-o nospace" # features supported by bash 3.0 and higher -if [ ${BASH_VERSINFO[0]} -gt 2 ]; then - declare -r bash3=$BASH_VERSION 2>/dev/null || : - bashdefault="-o bashdefault" - plusdirs="-o plusdirs" -fi +declare -r bash3=$BASH_VERSION 2>/dev/null || : +bashdefault="-o bashdefault" +plusdirs="-o plusdirs" # features supported by bash 4.0 and higher if [ ${BASH_VERSINFO[0]} -gt 3 ]; then declare -r bash4=$BASH_VERSION 2>/dev/null || : |