Permalink
Browse files

Expose version in BASH_COMPLETION_VERSINFO, use it in profile.d script

BASH_COMPLETION_COMPAT_DIR was previously used for the latter purpose.
  • Loading branch information...
scop committed Jun 27, 2017
1 parent 4d5785f commit eb6f40c5a7e715d8a9104bf90c67018428ca2eb7
Showing with 3 additions and 3 deletions.
  1. +2 −2 bash_completion
  2. +1 −1 bash_completion.sh.in
View
@@ -22,8 +22,8 @@
# The latest version of this software can be obtained here:
#
# https://github.com/scop/bash-completion
#
# RELEASE: 2.5
BASH_COMPLETION_VERSINFO=(2 5)
if [[ $- == *v* ]]; then
BASH_COMPLETION_ORIGINAL_V_VALUE="-v"
View
@@ -1,5 +1,5 @@
# Check for interactive bash and that we haven't already been sourced.
if [ -n "${BASH_VERSION-}" -a -n "${PS1-}" -a -z "${BASH_COMPLETION_COMPAT_DIR-}" ]; then
if [ -n "${BASH_VERSION-}" -a -n "${PS1-}" -a -z "${BASH_COMPLETION_VERSINFO-}" ]; then
# Check for recent enough version of bash.
if [ ${BASH_VERSINFO[0]} -gt 4 ] || \

0 comments on commit eb6f40c

Please sign in to comment.