View | Details | Raw Unified | Return to bug 9148
Collapse All | Expand All

(-)orig/etc/profile.d/bash-completion.sh (-6 / +9 lines)
Lines 1-7 Link Here
1
bash=${BASH_VERSION%.*}; bmajor=${bash%.*}; bminor=${bash#*.}
1
if [ "$PS1" ] && [ -f /etc/bash_completion ]; then
2
if [ "$PS1" ] && [ "$bmajor" -eq 2 ] && [ "$bminor" '>' 04 ] || [ $bmajor -gt 2 ] \
2
  if [ ! -z "$SHELL" ] && [ "bash" == "${SHELL##*/}" ]; then
3
	&& [ -f /etc/bash_completion ]; then	# interactive shell
3
    bash=${BASH_VERSION%.*}; bmajor=${bash%.*}; bminor=${bash#*.}
4
	# Source completion code
4
    if [ "$bmajor" -eq 2 ] && [ "$bminor" '>' 04 ] || [ $bmajor -gt 2 ]; then	# interactive shell
5
	. /etc/bash_completion
5
      # Source completion code
6
      . /etc/bash_completion
7
    fi
8
    unset bash bmajor bminor
9
  fi
6
fi
10
fi
7
unset bash bmajor bminor

Return to bug 9148