1#!/bin/sh
2#
3# Ensures that tests are run under Bash; primarily intended for running tests
4# of the completion script.
56
if test -n "$BASH" && test -z "$POSIXLY_CORRECT"; then
7# we are in full-on bash mode
8true
9elif type bash >/dev/null 2>&1; then
10# execute in full-on bash mode
11unset POSIXLY_CORRECT
12exec bash "$0" "$@"
13else
14echo '1..0 #SKIP skipping bash completion tests; bash not available'
15exit 0
16fi
1718
. ./test-lib.sh