]> git.ipfire.org Git - thirdparty/git.git/blame - t/lib-bash.sh
The sixth batch for 2.26
[thirdparty/git.git] / t / lib-bash.sh
CommitLineData
c74c7203
JN
1# Shell library sourced instead of ./test-lib.sh by tests that need
2# to run under Bash; primarily intended for tests of the completion
3# script.
f8891cfa 4
df6d3d68
DL
5if test -n "$BASH" && test -z "$POSIXLY_CORRECT"
6then
f8891cfa
SG
7 # we are in full-on bash mode
8 true
df6d3d68
DL
9elif type bash >/dev/null 2>&1
10then
f8891cfa
SG
11 # execute in full-on bash mode
12 unset POSIXLY_CORRECT
13 exec bash "$0" "$@"
14else
15 echo '1..0 #SKIP skipping bash completion tests; bash not available'
16 exit 0
17fi
18
19. ./test-lib.sh