]> git.pld-linux.org Git - packages/bash-completion.git/commitdiff
- added support for bash >= 3.0
authorgrzegol <grzegol@pld-linux.org>
Mon, 23 Aug 2004 22:15:25 +0000 (22:15 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- rel. 3

Changed files:
    bash-completion.spec -> 1.103

bash-completion.spec

index 278d951709bdcac184f2149b50656edb2bd49fa2..8bb287fc5550676d2135001b4221b3ad6e215848 100644 (file)
@@ -2,7 +2,7 @@ Summary:        bash-completion offers programmable completion for bash
 Summary(pl):   Programowalne uzupeĀ³nianie nazw dla basha
 Name:          bash-completion
 Version:       20040711
-Release:       2
+Release:       3
 License:       GPL
 Group:         Applications/Shells
 Source0:       http://www.caliban.org/files/bash/%{name}-%{version}.tar.bz2
@@ -49,10 +49,11 @@ if ! grep -q '\[ -f '%{_sysconfdir}'/bash_completion \]' \
                cat <<'EOF' >> %{_sysconfdir}/bashrc
 # START bash completion -- do not remove this line
 bash=${BASH_VERSION%.*}; bmajor=${bash%.*}; bminor=${bash#*.}
-if [ "$PS1" ] && [ "$bmajor" -eq 2 ] && [ "$bminor" '>' 04 ] \
-       && [ -f %{_sysconfdir}/bash_completion ]; then  # interactive shell
-       # Source completion code
-       . %{_sysconfdir}/bash_completion
+if [ "$bmajor" -eq 2 -a "$bminor" '>' 04 ] || [ "$bmajor" -gt 2 ]; then
+       if [ "$PS1" ] && [ -f %{_sysconfdir}/bash_completion ]; then # interactive shell
+               # Source completion code
+               . %{_sysconfdir}/bash_completion
+       fi
 fi
 unset bash bmajor bminor
 # END bash completion -- do not remove this line
This page took 0.065934 seconds and 4 git commands to generate.