Skip to content

Commit eb6f40c

Browse files
committed
Expose version in BASH_COMPLETION_VERSINFO, use it in profile.d script
BASH_COMPLETION_COMPAT_DIR was previously used for the latter purpose.
1 parent 4d5785f commit eb6f40c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

bash_completion

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
# The latest version of this software can be obtained here:
2323
#
2424
# https://github.com/scop/bash-completion
25-
#
26-
# RELEASE: 2.5
25+
26+
BASH_COMPLETION_VERSINFO=(2 5)
2727

2828
if [[ $- == *v* ]]; then
2929
BASH_COMPLETION_ORIGINAL_V_VALUE="-v"

bash_completion.sh.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Check for interactive bash and that we haven't already been sourced.
2-
if [ -n "${BASH_VERSION-}" -a -n "${PS1-}" -a -z "${BASH_COMPLETION_COMPAT_DIR-}" ]; then
2+
if [ -n "${BASH_VERSION-}" -a -n "${PS1-}" -a -z "${BASH_COMPLETION_VERSINFO-}" ]; then
33

44
# Check for recent enough version of bash.
55
if [ ${BASH_VERSINFO[0]} -gt 4 ] || \

0 commit comments

Comments
 (0)